Jump to content


Photo

Date to GMT 0


  • Please log in to reply
1 reply to this topic

#1 rtswimmer

rtswimmer
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 23 March 2006 - 04:40 AM

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)
date("l, F j, Y H:i:s");
Result: Wednesday, March 22, 2006 22:27:27

Ive looked on [a href=\"http://us3.php.net/date\" target=\"_blank\"]here[/a] but i dont understand how to use the 'z' format character
Examples would be a great help

Cheers - RTSwimmer

#2 swatisonee

swatisonee
  • Members
  • PipPipPip
  • Advanced Member
  • 253 posts

Posted 23 March 2006 - 04:38 PM

TRY,

<?
$t1 = date('Y-m-d H:i:s' , time() + 21600);

echo $t1;
?>
Shishya




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users