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,
$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}};
+ikiwiki (3.20110322) UNRELEASED; urgency=low
+
+ * Add timezone setting in setup file. This alows time zone to be configured
+ via the web.
+
+ -- Joey Hess <joeyh@debian.org> Thu, 24 Mar 2011 13:34:34 -0400
+
ikiwiki (3.20110321) unstable; urgency=low
* comment: Don't show comments of subpages on parent pages.
> [[done]] via the ENV setting in the setup file. --[[Joey]]
-
-Example (ikiwiki.setup):
-
- ENV => { TZ => "Europe/Sofia" }
+>> Now via a timezone setting that is web configurable. --[[Joey]]