Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Rewati Raman
timezone and the displayed time is not matching
2 de enero de 2013 1:28
Respuesta

Rewati Raman

Ranking: Junior Member

Mensajes: 97

Fecha de incorporación: 24 de febrero de 2012

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
David H Nebinger
RE: timezone and the displayed time is not matching
2 de enero de 2013 5:20
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11046

Fecha de incorporación: 1 de septiembre de 2006

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.
Hitoshi Ozawa
RE: timezone and the displayed time is not matching
2 de enero de 2013 7:09
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

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.
Rewati Raman
RE: timezone and the displayed time is not matching
2 de enero de 2013 20:49
Respuesta

Rewati Raman

Ranking: Junior Member

Mensajes: 97

Fecha de incorporación: 24 de febrero de 2012

Mensajes recientes

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