Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/functions.php

    r10354 r10491  
    8080 * The 'timestamp' type will return the current timestamp.
    8181 *
    82  * If the $gmt is set to either '1' or 'true', then both types will use the
    83  * GMT offset in the WordPress option to add the GMT offset to the time.
     82 * If $gmt is set to either '1' or 'true', then both types will use GMT time.
     83 * if $gmt is false, the output is adjusted with the GMT offset in the WordPress option.
    8484 *
    8585 * @since 1.0.0
    8686 *
    8787 * @param string $type Either 'mysql' or 'timestamp'.
    88  * @param int|bool $gmt Optional. Whether to use $gmt offset. Default is false.
     88 * @param int|bool $gmt Optional. Whether to use GMT timezone. Default is false.
    8989 * @return int|string String if $type is 'gmt', int if $type is 'timestamp'.
    9090 */
Note: See TracChangeset for help on using the changeset viewer.