Timezone fixes, I hope.

git-svn-id: http://svn.automattic.com/wordpress/trunk@1150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
saxmatt
2004-04-24 21:52:24 +00:00
parent 06749585b5
commit 9945a746ec
13 changed files with 31 additions and 37 deletions

View File

@@ -87,8 +87,8 @@ function get_permalink($id=false) {
function get_month_link($year, $month) {
global $querystring_start, $querystring_equal;
if (!$year) $year = gmdate('Y', time()+($time_difference * 3600));
if (!$month) $month = gmdate('m', time()+($time_difference * 3600));
if (!$year) $year = gmdate('Y', time()+(get_settings('gmt_offset') * 3600));
if (!$month) $month = gmdate('m', time()+(get_settings('gmt_offset') * 3600));
if ('' != get_settings('permalink_structure')) {
$off = strpos(get_settings('permalink_structure'), '%monthnum%');
$offset = $off + 11;
@@ -105,9 +105,9 @@ function get_month_link($year, $month) {
function get_day_link($year, $month, $day) {
global $querystring_start, $querystring_equal;
if (!$year) $year = gmdate('Y', time()+($time_difference * 3600));
if (!$month) $month = gmdate('m', time()+($time_difference * 3600));
if (!$day) $day = gmdate('j', time()+($time_difference * 3600));
if (!$year) $year = gmdate('Y', time()+(get_settings('gmt_offset') * 3600));
if (!$month) $month = gmdate('m', time()+(get_settings('gmt_offset') * 3600));
if (!$day) $day = gmdate('j', time()+(get_settings('gmt_offset') * 3600));
if ('' != get_settings('permalink_structure')) {
$off = strpos(get_settings('permalink_structure'), '%day%');
$offset = $off + 6;