Added support for short year format.
This commit is contained in:
parent
4fa67c3d0c
commit
7f3d889bed
1 changed files with 9 additions and 7 deletions
|
@ -339,7 +339,8 @@ class _i18nSingleton extends Spine.Module
|
||||||
|
|
||||||
d = timeObject.getDate()
|
d = timeObject.getDate()
|
||||||
m = timeObject.getMonth() + 1
|
m = timeObject.getMonth() + 1
|
||||||
y = timeObject.getFullYear()
|
yfull = timeObject.getFullYear()
|
||||||
|
yshort = timeObject.getYear()-100
|
||||||
S = timeObject.getSeconds()
|
S = timeObject.getSeconds()
|
||||||
M = timeObject.getMinutes()
|
M = timeObject.getMinutes()
|
||||||
H = timeObject.getHours()
|
H = timeObject.getHours()
|
||||||
|
@ -348,7 +349,8 @@ class _i18nSingleton extends Spine.Module
|
||||||
.replace(/d/, d)
|
.replace(/d/, d)
|
||||||
.replace(/mm/, s(m, 2))
|
.replace(/mm/, s(m, 2))
|
||||||
.replace(/m/, m)
|
.replace(/m/, m)
|
||||||
.replace(/yyyy/, y)
|
.replace(/yyyy/, yfull)
|
||||||
|
.replace(/yy/, yshort)
|
||||||
.replace(/SS/, s(S, 2))
|
.replace(/SS/, s(S, 2))
|
||||||
.replace(/MM/, s(M, 2))
|
.replace(/MM/, s(M, 2))
|
||||||
.replace(/HH/, s(H, 2))
|
.replace(/HH/, s(H, 2))
|
||||||
|
|
Loading…
Reference in a new issue