Open mkinnan opened 8 years ago
Do you want to integrate this approach or something else?
http://stackoverflow.com/questions/10087819/convert-date-to-another-timezone-in-javascript
Setting the default site timezone as UTC and forcing all users to use UTC is probably the poor man's way to solve this problem.
I'm not sure I see why users need to set their own timezone, so going the all UTC route appears to have this fixed for me.
Thoughts on this before I do a mass change on existing content?
@mkinnan Well first I'd say we need to support the timezone field in DrupalGap core (for Drupal core's user time zone property) so user's can set their time zone from within the app. Then I think the date.js module could easily be expanded for DrupalGap to take a look at the Drupal.user
object's timezone property and then convert it before printing it.
Even though the date/time is being displayed in 24 hour format, the time does not reflect a user's timezone and always shows UTC.