Page MenuHomePhorge

D25630.1734730109.diff
No OneTemporary

D25630.1734730109.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, 21:28 (14 h, 39 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1020554
Default Alt Text
D25630.1734730109.diff (722 B)

Event Timeline