Project

General

Profile

Feature #883

WDateTime: local time

Added by Boris Nagaev about 10 years ago. Updated about 10 years ago.

Status:
Feedback
Priority:
Normal
Assignee:
Target version:
-
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
#1

Updated by Koen Deforche about 10 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

#2

Updated by Boris Nagaev about 10 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.

#3

Updated by Boris Nagaev about 10 years ago

Method returning time string for server's time zone would be also useful.

Also available in: Atom PDF