Re: Handling Timezones in cakephp

2011-10-17 Thread Miles J
I dont agree with #2. Time should always be saved to the database as UTC, and then on the front-end converted to the timezone. The TimeHelper supports passing a timezone (e.g., -8) as a param and formats accordingly. On Oct 17, 6:13 am, David Kullmann wrote: > Sorry for emailing you directly - I

Re: Handling Timezones in cakephp

2011-10-17 Thread David Kullmann
Sorry for emailing you directly - I meant to reply on this forum but hit the wrong button. You should follow these rules: 1. All times in the database should always be UTC 2. beforeSave and afterFind you should always convert the times to the users time zone 3. You should never have a time whic

Handling Timezones in cakephp

2011-10-16 Thread jovial
I have added a timezone field on user sign up page.Now when a tutor logins then he will fill his timezone and will also fill his availability(timinings he will be available in a week) Now there is a functionality of FINDING A TUTOR .Any 1 ho wishes to search a tutor will enter start date start time