Changeset 917
- Timestamp:
- 02/23/2004 04:37:11 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions-formatting.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions-formatting.php
r915 r917 403 403 } 404 404 405 // give it a GMT date, it will give you the same date with $time_difference added 406 function get_date_from_gmt($string) { 407 $time_difference = get_settings('time_difference'); 408 // $string must be of the form 'yyyy-mm-dd hh:mm:ss' 409 if ($string == gmdate('Y-m-d H:i:s')) { 410 $string_time = gmmktime(substr($string,11,13), substr($string,14,16), substr($string,17,19), substr($string,5,7), substr($string,8,10), substr($string,0,4)); 411 $local_time = $string_time + $time_difference*3600; 412 return gmdate('Y-m-d H:i:s', $local_time); 413 } else { 414 return $string; 415 } 416 } 417 405 418 ?>
Note: See TracChangeset
for help on using the changeset viewer.