diff options
author | Joey Hess <joey@kitenet.net> | 2010-05-31 20:46:12 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-05-31 20:46:12 -0400 |
commit | 1b6aa2276e22be2fa7adbca07545f87e248eaf2d (patch) | |
tree | d6f2aafc1767be2a01098b371b48a0c2112ffdb1 /IkiWiki.pm | |
parent | 052887296570bd8e4750862293fd36424f153fbd (diff) | |
download | ikiwiki-1b6aa2276e22be2fa7adbca07545f87e248eaf2d.tar ikiwiki-1b6aa2276e22be2fa7adbca07545f87e248eaf2d.tar.gz |
creation_day() etc use local time, not gmtime.
To match calendars, which use local time. Particularly important at
the end of the month.
I checked the history, and there seemed no good rationalle for the
pagespecs to use gmtime.
Diffstat (limited to 'IkiWiki.pm')
-rw-r--r-- | IkiWiki.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki.pm b/IkiWiki.pm index 0f28801a6..e2a3d216f 100644 --- a/IkiWiki.pm +++ b/IkiWiki.pm @@ -2463,7 +2463,7 @@ sub match_created_after ($$;@) { } sub match_creation_day ($$;@) { - if ((gmtime($IkiWiki::pagectime{shift()}))[3] == shift) { + if ((localtime($IkiWiki::pagectime{shift()}))[3] == shift) { return IkiWiki::SuccessReason->new('creation_day matched'); } else { @@ -2472,7 +2472,7 @@ sub match_creation_day ($$;@) { } sub match_creation_month ($$;@) { - if ((gmtime($IkiWiki::pagectime{shift()}))[4] + 1 == shift) { + if ((localtime($IkiWiki::pagectime{shift()}))[4] + 1 == shift) { return IkiWiki::SuccessReason->new('creation_month matched'); } else { @@ -2481,7 +2481,7 @@ sub match_creation_month ($$;@) { } sub match_creation_year ($$;@) { - if ((gmtime($IkiWiki::pagectime{shift()}))[5] + 1900 == shift) { + if ((localtime($IkiWiki::pagectime{shift()}))[5] + 1900 == shift) { return IkiWiki::SuccessReason->new('creation_year matched'); } else { |