Improved performance.
This commit is contained in:
parent
5779eb0855
commit
04aea92f8c
1 changed files with 9 additions and 8 deletions
|
@ -313,12 +313,13 @@ class _i18nSingleton extends Spine.Module
|
||||||
S = timeObject.getSeconds()
|
S = timeObject.getSeconds()
|
||||||
M = timeObject.getMinutes()
|
M = timeObject.getMinutes()
|
||||||
H = timeObject.getHours()
|
H = timeObject.getHours()
|
||||||
format = format.replace /dd/, s(d, 2)
|
format = format
|
||||||
format = format.replace /d/, d
|
.replace(/dd/, s(d, 2))
|
||||||
format = format.replace /mm/, s(m, 2)
|
.replace(/d/, d)
|
||||||
format = format.replace /m/, m
|
.replace(/mm/, s(m, 2))
|
||||||
format = format.replace /yyyy/, y
|
.replace(/m/, m)
|
||||||
format = format.replace /SS/, s(S, 2)
|
.replace(/yyyy/, y)
|
||||||
format = format.replace /MM/, s(M, 2)
|
.replace(/SS/, s(S, 2))
|
||||||
format = format.replace /HH/, s(H, 2)
|
.replace(/MM/, s(M, 2))
|
||||||
|
.replace(/HH/, s(H, 2))
|
||||||
format
|
format
|
||||||
|
|
Loading…
Reference in a new issue