Actions
Feature #883
openWDateTime: local time
Start date:
06/30/2011
Due date:
% Done:
0%
Estimated time:
Description
Provide method of WDateTime, returning localized time, like unix command date
:
$ date
Thu Jun 30 18:29:39 MSD 2011
Updated by Koen Deforche over 12 years ago
- Status changed from New to Feedback
- Assignee set to Koen Deforche
Hey,
Do you mean the local time on the browser ?
That is actually a thorny problem. It can be done if JavaScript is available.
Unfortunately, there is no reliable way to know in what timezone the user is in, in order to display (other) dates in the correct timezone.
Regards,
koen
Updated by Boris Nagaev over 12 years ago
Timezone info can be pased as an argument to method of WDateTime (each user could set timezone during registration and then this timezone would be used).
Method to get timezone from javascript (if available) and from address of client (if possible) can also be added.
Updated by Boris Nagaev over 12 years ago
Method returning time string for server's time zone would be also useful.
Actions