Foros de discusión

timezone and the displayed time is not matching

thumbnail
Rewati Raman, modificado hace 11 años.

timezone and the displayed time is not matching

Junior Member Mensajes: 97 Fecha de incorporación: 24/02/12 Mensajes recientes
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, modificado hace 11 años.

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

Liferay Legend Mensajes: 14915 Fecha de incorporación: 2/09/06 Mensajes recientes
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, modificado hace 11 años.

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

Liferay Legend Mensajes: 7942 Fecha de incorporación: 24/03/10 Mensajes recientes
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, modificado hace 11 años.

RE: timezone and the displayed time is not matching

Junior Member Mensajes: 97 Fecha de incorporación: 24/02/12 Mensajes recientes
thanks David and Hitoshi for this valueable suggestion....