Changeset 1150 for trunk/wp-includes/functions.php
- Timestamp:
- 04/24/2004 09:52:24 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r1148 r1150 54 54 switch ($type) { 55 55 case 'mysql': 56 return ($gmt) ? gmdate('Y-m-d H:i:s') 57 : gmdate('Y-m-d H:i:s', (time() + ($time_difference * 3600)));; 56 if ($gmt) $d = gmdate('Y-m-d H:i:s'); 57 else $d = gmdate('Y-m-d H:i:s', (time() + (get_settings('gmt_offset') * 3600))); 58 return $d; 58 59 break; 59 60 case 'timestamp': 60 return ($gmt) ? time() 61 : time() + ($time_difference * 3600); 61 if ($gmt) $d = time(); 62 else $d = time() + (get_settings('gmt_offset') * 3600); 63 return $d; 62 64 break; 63 65 } … … 436 438 437 439 function touch_time($edit = 1) { 438 global $month, $postdata , $time_difference;440 global $month, $postdata; 439 441 // echo $postdata['Date']; 440 442 if ('draft' == $postdata['post_status']) { … … 447 449 echo '<p><input type="checkbox" class="checkbox" name="edit_date" value="1" id="timestamp" '.$checked.'/> <label for="timestamp">' . __('Edit timestamp') . '</label> <a href="http://wordpress.org/docs/reference/post/#edit_timestamp" title="' . __('Help on changing the timestamp') . '">?</a><br />'; 448 450 449 $time_adj = time() + ( $time_difference* 3600);451 $time_adj = time() + (get_settings('gmt_offset') * 3600); 450 452 $post_date = $postdata['Date']; 451 453 $jj = ($edit) ? mysql2date('d', $post_date) : gmdate('d', $time_adj);
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)