How do you change the timezone in PHP for an existing timestamp?

panjina1

New Member
The code for the date and time function:\[code\]function date_and_time($format,$timestamp) {$date_and_time = date($format,$timestamp);return $date_and_time;}\[/code\]And then the code to display it:\[code\] <?php echo date_and_time("dS F Y", strtotime($profile[last_activity_date_and_time])); ?>\[/code\]The value of $profile[last_activity_date_and_time] is 2010-01-18 14:34:04When displayed it shows up as 18th January 2010 - 02:34pmBut, is there any way to change the timezone it is displayed in?
 
Back
Top