Jump to content

Format CEST to GMT


tradet

Recommended Posts

Thx, got it working with

$now = mktime(date('H'),date('i'),date('s'),date('m'),date('d'),date('Y'));
$gmt = $now - 7200;
$now =  date("D, d M Y H:i:s \G\M\T",$gmt);

However now I've got a new problem.

 

I need to format a mysql timestamp, such as:

'2008-09-22 15:38:19' //also in CEST

Into the format:

'Wed, 22 Sep 2008 13:38:19 GMT'

Link to comment
https://forums.phpfreaks.com/topic/125446-format-cest-to-gmt/#findComment-649340
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.