PDA

View Full Version : How to get the datetime without timezone conversion



felipeleandroferreira
29 Mar 2011, 8:02 PM
Hey Everyone,

Iīm using :
{ name: 'initialDate',type:'date',dateFormat:'c'} (STORE)
and
renderer: Ext.util.Format.dateRenderer('D d/m/Y H:i:s ') (GRID - COLUMN)

I donīt wanna change my original database information, but when I use the code above EXT change the original database and converts the datetime using the timezone (-03:00). So, if the datetime in the database is 09:37 ExtJS shows 06:37. How can I solve it?

dawesi
30 Mar 2011, 6:22 PM
are you sure that it's the javascript converting it or is it PHP/ColdFusion/jsp/other web app server converting it to the different timezone?

felipeleandroferreira
3 Apr 2011, 6:08 PM
You were completely right. I started learning Rails and ExtJS and sometimes I donīt know where the solution is. Thanks for your answer.