mirror of
https://github.com/bobwen-dev/htpdate
synced 2025-04-11 23:00:44 +02:00
Delete dayjs_format_ms.coffee
This commit is contained in:
parent
ca0b2d211d
commit
dddfad7b5f
@ -1,16 +0,0 @@
|
|||||||
module.exports = (o, c, d) ->
|
|
||||||
proto = c.prototype
|
|
||||||
old_format = proto.format
|
|
||||||
proto.format = (fmt_str = 'YYYY-MM-DDTHH:mm:ssZ') ->
|
|
||||||
locale = @$locale()
|
|
||||||
utils = @$utils()
|
|
||||||
r = fmt_str.replace /\[([^\]]+)]|SSS|S{2,2}|S/g, (word) =>
|
|
||||||
switch word
|
|
||||||
when 'S'
|
|
||||||
"#{@$ms}"
|
|
||||||
when 'SS'
|
|
||||||
ms = Math.round(@$ms / 10)
|
|
||||||
"#{ms}".padStart(2, '0')
|
|
||||||
else
|
|
||||||
word
|
|
||||||
old_format.bind(this) r
|
|
Loading…
x
Reference in New Issue
Block a user