Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UTC, local timeMode options is not applied. #105

Closed
kibumh opened this issue Jun 1, 2012 · 1 comment
Closed

UTC, local timeMode options is not applied. #105

kibumh opened this issue Jun 1, 2012 · 1 comment

Comments

@kibumh
Copy link

kibumh commented Jun 1, 2012

no mode argument for Month and FullYear. (default value 'UTC' is applied)
This results in 2012/5/1 to be a next day of 2012/5/31 in some timezone.

$ git diff
diff --git a/js/Date.js b/js/Date.js
index b380511..bd32d3d 100644
--- a/js/Date.js
+++ b/js/Date.js
@@ -30,8 +30,8 @@ Flotr.Date = {
         S: leftPad(get(d, 'Seconds', mode)),
         s: get(d, 'Milliseconds', mode),
         d: get(d, 'Date', mode).toString(),
-        m: (get(d, 'Month') + 1).toString(),
-        y: get(d, 'FullYear').toString(),
+        m: (get(d, 'Month', mode) + 1).toString(),
+        y: get(d, 'FullYear', mode).toString(),
         b: Flotr.Date.monthNames[get(d, 'Month', mode)]
       };
@cesutherland
Copy link
Member

looks good, could you attach it as a pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants