-
Type: New Feature
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: JavaScript
According to the docs, dates should be stored as UTC in mongodb. (At least pymongo suggests that and implicitly converts timezone aware datetimes to UTC.)
However, in order to be able to group by days in a local timezone, some way to convert the Date() to a specific timezone in serverside javascript should be provided.
E.g. a grouping function like...
-------------------- 8< --------------------
function(d) {
return
;
};
-------------------- 8< --------------------
... won't work, if the timestamps are saved in UTC but grouping should be done by local days.