Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2688445
D25630.1734722884.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
722 B
Referenced Files
None
Subscribers
None
D25630.1734722884.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D25630: Facts: Always render YYYY-MM-DD dates with eight digits in chart tooltips
Attached
Detach File
Event Timeline
Log In to Comment