marknt Posted November 17, 2006 Share Posted November 17, 2006 Ok, I this is my code that Translates server time into client localized time based on client's chosen offset. And it works.[code]<?phpdefine('TIMENOW',time());function translate_time($_offset,$_time = TIMENOW){ $_offset_secs = $_offset * 3600; return $_offset_secs + $_time;}$model_timeoffset = -3;$clients_time = $admin->translate_time($model_timeoffset,TIMENOW);$servers_time = date("F d, Y l g:i A");$gmt_time = ??>[/code]How can I convert the client's time to the current GMT time? ThanksCheers [img]http://i91.photobucket.com/albums/k310/marknt/36_1_211.gif[/img] Link to comment https://forums.phpfreaks.com/topic/27553-translating-my-current-timestamp-to-gmt-time/ Share on other sites More sharing options...
marknt Posted November 17, 2006 Author Share Posted November 17, 2006 Help anyone phluezzz :'( Link to comment https://forums.phpfreaks.com/topic/27553-translating-my-current-timestamp-to-gmt-time/#findComment-126046 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.