Page MenuHomePhorge

D25630.1734722884.diff
No OneTemporary

D25630.1734722884.diff

diff --git a/webroot/rsrc/js/application/fact/Chart.js b/webroot/rsrc/js/application/fact/Chart.js
--- a/webroot/rsrc/js/application/fact/Chart.js
+++ b/webroot/rsrc/js/application/fact/Chart.js
@@ -194,9 +194,15 @@
var d_y = dd.getFullYear();
// NOTE: Javascript months are zero-based. See PHI1017.
- var d_m = dd.getMonth() + 1;
-
- var d_d = dd.getDate();
+ var d_m = (dd.getMonth() + 1).toString();
+ if (d_m.length == 1) {
+ d_m = '0' + d_m;
+ }
+
+ var d_d = dd.getDate().toString();
+ if (d_d.length == 1) {
+ d_d = '0' + d_d;
+ }
var y = parseInt(d.y1);

File Metadata

Mime Type
text/plain
Expires
Fri, Dec 20, 19:28 (11 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020554
Default Alt Text
D25630.1734722884.diff (722 B)

Event Timeline