Skip to content

Commit 3c60049

Browse files
committed
Redefine twoZeroPad in tracker.js
1 parent 516acaf commit 3c60049

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

js/tracker.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,6 +850,11 @@ function stringToDateUTC(text) {
850850
return new Date(convert_time(text));
851851
}
852852

853+
function twoZeroPad(n){
854+
n = String(n);
855+
return (n.length<2) ? '0'+n : n;
856+
}
857+
853858
function formatDate(date,utc) {
854859
var a,b,c,d,e,f,g,z;
855860

0 commit comments

Comments
 (0)