maybe you can adopt some of this https://raw.github.com/jellehenkens/lemon_utils/master/View/Helper/TimeMachineHelper.php
I am wondering: How do you guys handle the daylight saving time issue? Currently we face this problem in 2.0: - dates (created, modified, own ones) are saved without it (-1 hour offset from the current time) - returning them from DB, though, leaves them untouched (still -1 offset) - using a time helper that is aware of timezones we can correct it back to 0 offset for output But what with forms that directly use the content of the DB? they will contain the -1 offset which can be confusing. wouldnt it be better to modify the dates right when they come out of the DB to ensure all methods (controller, model, view level) use the same offset? and make sure they are modified back on save? or how do you handle it? manually adjust dates used in forms? of course the same goes for more than just DST - complete timezone changes etc. On 29 Okt., 06:17, Ryan Schmidt <[email protected]> wrote: > On Oct 26, 2011, at 01:25, Shanaka wrote: > > > I'm creating a web application using cakephp 1.2.6. > > Why would you use 1.2.x to create a new web app, and not 2.0? Even using > 1.3.x would be better but I don't see why you wouldn't start with the latest > and greatest. Converting your app later to use a newer version of CakePHP > will involve non-zero effort, so I'd think you'd want to spare yourself that > work. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
