Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Rewati Raman
timezone and the displayed time is not matching
2. Januar 2013 01:28
Antwort

Rewati Raman

Rang: Junior Member

Nachrichten: 97

Eintrittsdatum: 24. Februar 2012

Neue Beiträge

Hi,

After changing time zone of liferay portal i am getting all users with changed time zone but the createDate field in User_ table is displaying time as per GMT not as per defined timezone....

for example i have changed the time zone as Asia/Calcutta but it is still showing time in GMT

need help in that i am not able to resolve the issue...

Regards,
Rewati Raman
David H Nebinger
RE: timezone and the displayed time is not matching
2. Januar 2013 05:20
Antwort

David H Nebinger

Rang: Liferay Legend

Nachrichten: 7157

Eintrittsdatum: 1. September 2006

Neue Beiträge

Dates/times will still be stored in the timezone of the application container, not the 'display' timezone set at the user level.

Sticking w/ GMT is best because it is easy to convert to any timezone for display purposes.
Hitoshi Ozawa
RE: timezone and the displayed time is not matching
2. Januar 2013 07:09
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

What David is implying is that you shouldn't be using values directly from the liferay database but should be using liferay's apis to get information. That's how liferay was designed to be.
Rewati Raman
RE: timezone and the displayed time is not matching
2. Januar 2013 20:49
Antwort

Rewati Raman

Rang: Junior Member

Nachrichten: 97

Eintrittsdatum: 24. Februar 2012

Neue Beiträge

thanks David and Hitoshi for this valueable suggestion....