Daylight savings time with mysql and php -
quick question:
i have issue daylight savings time affecting output of data on website.
everything showing being hour ahead (we in middle of bst).
how make database recognise when it's dst , output accordingly?
programming language php database mysql data in question formatted datetime
and code is:
<?php echo date('d, js f @ g:ia', strtotime($event_date)); ?>
use date_default_timezone_set('utc');
(you might want take @ php manual)
Comments
Post a Comment