Make WordPress Core

Changeset 915


Ignore:
Timestamp:
02/23/2004 03:46:55 AM (22 years ago)
Author:
michelvaldrighi
Message:

better get time_difference from get_settings than assume a global is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions-formatting.php

    r913 r915  
    392392// give it a date, it will give you the same date as GMT
    393393function get_gmt_from_date($string) {
    394   global $time_difference;
     394  $time_difference = get_settings('time_difference');
    395395  // $string must be of the form 'yyyy-mm-dd hh:mm:ss'
    396396  if ($string != gmdate('Y-m-d H:i:s')) {
Note: See TracChangeset for help on using the changeset viewer.