I had the same issue and now use gmdate everywhere. Tested it on two servers in different timezones, and it worked alright.
On Nov 23, 11:29 am, Jas <[email protected]> wrote: > I'd like to know the best way to store records on a server in another > country. Some of the users will be in other countries. when they view > their own records (they cant see records of the other users) the dates > need to display in their local timezone. > I don't want to store the date as their local time incase they change > their timezone. > > Part 2 of that problem is how to apply DST (Daylight Savings time)? > > Does this make any sense? > How would you handle storing data in a common timezone and display it > to the user as their preferred timezone? > > The main reason for this, is I think I'll be changing webservers and > will most likely be in a different county. So the servers timezone > shouldn't have any impact on the data. > > On Nov 23, 9:15 pm, Amit Rawat <[email protected]> wrote: > > > ok so whats your main problem? > > -- You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/cake-php?hl=.
