rtswimmer Posted March 23, 2006 Share Posted March 23, 2006 How can you change the date and time to GMT 0 (London, England)This is what i have but its 6 hours behind (obviously defaults to US time)[code]date("l, F j, Y H:i:s");[/code] Result: Wednesday, March 22, 2006 22:27:27Ive looked on [a href=\"http://us3.php.net/date\" target=\"_blank\"]here[/a] but i dont understand how to use the 'z' format characterExamples would be a great helpCheers - RTSwimmer Link to comment https://forums.phpfreaks.com/topic/5561-date-to-gmt-0/ Share on other sites More sharing options...
swatisonee Posted March 23, 2006 Share Posted March 23, 2006 TRY,<? $t1 = date('Y-m-d H:i:s' , time() + 21600); echo $t1;?> Link to comment https://forums.phpfreaks.com/topic/5561-date-to-gmt-0/#findComment-20009 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.