Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Rewati Raman
timezone and the displayed time is not matching
January 2, 2013 1:28 AM
Answer

Rewati Raman

Rank: Junior Member

Posts: 97

Join Date: February 24, 2012

Recent Posts

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
January 2, 2013 5:20 AM
Answer

David H Nebinger

Rank: Liferay Legend

Posts: 7253

Join Date: September 1, 2006

Recent Posts

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
January 2, 2013 7:09 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7954

Join Date: March 23, 2010

Recent Posts

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
January 2, 2013 8:49 PM
Answer

Rewati Raman

Rank: Junior Member

Posts: 97

Join Date: February 24, 2012

Recent Posts

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