summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/pdf/js/util.js12
-rw-r--r--source/pdf/js/util.js.h12
2 files changed, 12 insertions, 12 deletions
diff --git a/source/pdf/js/util.js b/source/pdf/js/util.js
index ce60ec43..e2c00169 100644
--- a/source/pdf/js/util.js
+++ b/source/pdf/js/util.js
@@ -222,21 +222,21 @@ util.printd = function (fmt, d) {
switch (tokens[i]) {
case 'mmmm': res += MuPDF.monthName[d.getMonth()]; break;
case 'mmm': res += MuPDF.monthName[d.getMonth()].substring(0, 3); break;
- case 'mm': res += MuPDF.padZeros(d.getMonth()+1, 2); break;
+ case 'mm': res += padZeros(d.getMonth()+1, 2); break;
case 'm': res += d.getMonth()+1; break;
case 'dddd': res += MuPDF.dayName[d.getDay()]; break;
case 'ddd': res += MuPDF.dayName[d.getDay()].substring(0, 3); break;
- case 'dd': res += MuPDF.padZeros(d.getDate(), 2); break;
+ case 'dd': res += padZeros(d.getDate(), 2); break;
case 'd': res += d.getDate(); break;
case 'yyyy': res += d.getFullYear(); break;
case 'yy': res += d.getFullYear()%100; break;
- case 'HH': res += MuPDF.padZeros(d.getHours(), 2); break;
+ case 'HH': res += padZeros(d.getHours(), 2); break;
case 'H': res += d.getHours(); break;
- case 'hh': res += MuPDF.padZeros((d.getHours()+11)%12+1, 2); break;
+ case 'hh': res += padZeros((d.getHours()+11)%12+1, 2); break;
case 'h': res += (d.getHours()+11)%12+1; break;
- case 'MM': res += MuPDF.padZeros(d.getMinutes(), 2); break;
+ case 'MM': res += padZeros(d.getMinutes(), 2); break;
case 'M': res += d.getMinutes(); break;
- case 'ss': res += MuPDF.padZeros(d.getSeconds(), 2); break;
+ case 'ss': res += padZeros(d.getSeconds(), 2); break;
case 's': res += d.getSeconds(); break;
case 'tt': res += d.getHours() < 12 ? 'am' : 'pm'; break;
case 't': res += d.getHours() < 12 ? 'a' : 'p'; break;
diff --git a/source/pdf/js/util.js.h b/source/pdf/js/util.js.h
index 9d356c1a..9ef529dc 100644
--- a/source/pdf/js/util.js.h
+++ b/source/pdf/js/util.js.h
@@ -222,21 +222,21 @@
"switch (tokens[i]) {\n"
"case 'mmmm': res += MuPDF.monthName[d.getMonth()]; break;\n"
"case 'mmm': res += MuPDF.monthName[d.getMonth()].substring(0, 3); break;\n"
-"case 'mm': res += MuPDF.padZeros(d.getMonth()+1, 2); break;\n"
+"case 'mm': res += padZeros(d.getMonth()+1, 2); break;\n"
"case 'm': res += d.getMonth()+1; break;\n"
"case 'dddd': res += MuPDF.dayName[d.getDay()]; break;\n"
"case 'ddd': res += MuPDF.dayName[d.getDay()].substring(0, 3); break;\n"
-"case 'dd': res += MuPDF.padZeros(d.getDate(), 2); break;\n"
+"case 'dd': res += padZeros(d.getDate(), 2); break;\n"
"case 'd': res += d.getDate(); break;\n"
"case 'yyyy': res += d.getFullYear(); break;\n"
"case 'yy': res += d.getFullYear()%100; break;\n"
-"case 'HH': res += MuPDF.padZeros(d.getHours(), 2); break;\n"
+"case 'HH': res += padZeros(d.getHours(), 2); break;\n"
"case 'H': res += d.getHours(); break;\n"
-"case 'hh': res += MuPDF.padZeros((d.getHours()+11)%12+1, 2); break;\n"
+"case 'hh': res += padZeros((d.getHours()+11)%12+1, 2); break;\n"
"case 'h': res += (d.getHours()+11)%12+1; break;\n"
-"case 'MM': res += MuPDF.padZeros(d.getMinutes(), 2); break;\n"
+"case 'MM': res += padZeros(d.getMinutes(), 2); break;\n"
"case 'M': res += d.getMinutes(); break;\n"
-"case 'ss': res += MuPDF.padZeros(d.getSeconds(), 2); break;\n"
+"case 'ss': res += padZeros(d.getSeconds(), 2); break;\n"
"case 's': res += d.getSeconds(); break;\n"
"case 'tt': res += d.getHours() < 12 ? 'am' : 'pm'; break;\n"
"case 't': res += d.getHours() < 12 ? 'a' : 'p'; break;\n"