Foren

timezone and the displayed time is not matching

thumbnail
Rewati Raman, geändert vor 11 Jahren.

timezone and the displayed time is not matching

Junior Member Beiträge: 97 Beitrittsdatum: 24.02.12 Neueste 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
thumbnail
David H Nebinger, geändert vor 11 Jahren.

RE: timezone and the displayed time is not matching (Antwort)

Liferay Legend Beiträge: 14914 Beitrittsdatum: 02.09.06 Neueste 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.
thumbnail
Hitoshi Ozawa, geändert vor 11 Jahren.

RE: timezone and the displayed time is not matching (Antwort)

Liferay Legend Beiträge: 7942 Beitrittsdatum: 24.03.10 Neueste 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.
thumbnail
Rewati Raman, geändert vor 11 Jahren.

RE: timezone and the displayed time is not matching

Junior Member Beiträge: 97 Beitrittsdatum: 24.02.12 Neueste Beiträge
thanks David and Hitoshi for this valueable suggestion....