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

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -