Skip to content

Commit d799028

Browse files
authored
format microseconds as php
php date() formats microseconds with milliseconds included, so it's "microseconds in the second" not "microseconds in the millisecond". Which means if anyone were ever to use microseconds for whatever reason, they wouldn't use milliseconds. It's display either one or the other.
1 parent d998203 commit d799028

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jqClock.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ if (!Number.prototype.map) {
443443
timeStr += (''+s).padStart(2,"0");
444444
break;
445445
case "u": //Microseconds
446-
timeStr += us;
446+
timeStr += (''+ms).padStart(3,"0") + us;
447447
break;
448448
case "v": //Milliseconds
449449
timeStr += (''+ms).padStart(3,"0");

0 commit comments

Comments
 (0)