Make WordPress Core


Ignore:
Timestamp:
02/03/2009 11:04:31 PM (17 years ago)
Author:
ryan
Message:

Respect time zone when displaying autosave and revision time. Props janbrasna, designsimply. fixes #8750 #6489 for trunk

File:
1 edited

Legend:

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

    r10408 r10490  
    4747 * The 'timestamp' type will return the current timestamp.
    4848 *
    49  * If the $gmt is set to either '1' or 'true', then both types will use the
    50  * GMT offset in the WordPress option to add the GMT offset to the time.
     49 * If $gmt is set to either '1' or 'true', then both types will use GMT time.
     50 * if $gmt is false, the output is adjusted with the GMT offset in the WordPress option.
    5151 *
    5252 * @since 1.0.0
    5353 *
    5454 * @param string $type Either 'mysql' or 'timestamp'.
    55  * @param int|bool $gmt Optional. Whether to use $gmt offset. Default is false.
     55 * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
    5656 * @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
    5757 */
Note: See TracChangeset for help on using the changeset viewer.