projects
/
ikiwiki.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix targetpage replacement to support 3 argument form
[ikiwiki.git]
/
IkiWiki.pm
diff --git
a/IkiWiki.pm
b/IkiWiki.pm
index 9de25a4b31dc46dd450b2a6ab60261f44e9f0401..1c05a7aa55215d638400831066b1ee17496b15b9 100644
(file)
--- a/
IkiWiki.pm
+++ b/
IkiWiki.pm
@@
-336,6
+336,14
@@
sub getsetup () {
safe => 0, # paranoia
rebuild => 0,
},
safe => 0, # paranoia
rebuild => 0,
},
+ timezone => {
+ type => "string",
+ default => "",
+ example => "US/Eastern",
+ description => "time zone name",
+ safe => 1,
+ rebuild => 1,
+ },
include => {
type => "string",
default => undef,
include => {
type => "string",
default => undef,
@@
-529,6
+537,12
@@
sub checkconfig () {
$ENV{$val}=$config{ENV}{$val};
}
}
$ENV{$val}=$config{ENV}{$val};
}
}
+ if (defined $config{timezone} && length $config{timezone}) {
+ $ENV{TZ}=$config{timezone};
+ }
+ else {
+ $config{timezone}=$ENV{TZ};
+ }
if ($config{w3mmode}) {
eval q{use Cwd q{abs_path}};
if ($config{w3mmode}) {
eval q{use Cwd q{abs_path}};