Changeset 10490
- Timestamp:
- 02/03/2009 11:04:31 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-ajax.php
r10476 r10490 843 843 844 844 $data = ''; 845 $message = sprintf( __('Draft Saved at %s.'), date ( __('g:i:s a'), current_time( 'timestamp', true) ) );845 $message = sprintf( __('Draft Saved at %s.'), date_i18n( __('g:i:s a') ) ); 846 846 847 847 $supplemental = array(); -
trunk/wp-includes/functions.php
r10408 r10490 47 47 * The 'timestamp' type will return the current timestamp. 48 48 * 49 * If the $gmt is set to either '1' or 'true', then both types will use the50 * 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. 51 51 * 52 52 * @since 1.0.0 53 53 * 54 54 * @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. 56 56 * @return int|string String if $type is 'gmt', int if $type is 'timestamp'. 57 57 */ -
trunk/wp-includes/post-template.php
r10485 r10490 1192 1192 $currentf = __( '%s [Current Revision]' ); 1193 1193 1194 $date = date_i18n( $datef, strtotime( $revision->post_modified _gmt . ' +0000') );1194 $date = date_i18n( $datef, strtotime( $revision->post_modified ) ); 1195 1195 if ( $link && current_user_can( 'edit_post', $revision->ID ) && $link = get_edit_post_link( $revision->ID ) ) 1196 1196 $date = "<a href='$link'>$date</a>";
Note: See TracChangeset
for help on using the changeset viewer.