NAME
OpenInteract2::Setup::InitializeTimezone - Create the global timezone object
SYNOPSIS
my $setup = OpenInteract2::Setup->new( 'initialize timezone' );
$setup->run();
my $dt = CTX->create_date;
my $dt = CTX->create_date({ epoch => 15 });
my $dt = CTX->create_date({ year => 2005, month => 1, day => 23 });
DESCRIPTION
This setup action finds the timezone from the server configuration key 'Global.timezone' and creates a DateTime::TimeZone object from it. If that key is empty we assume 'America/New_York' since that's the center of the world.
After we create the DateTime::TimeZone object we store it in the context via the timezone_object
property and the string used as the timezone source in the 'timezone' property.
Setup Metadata
name - 'initialize timezone'
dependencies - default
SEE ALSO
COPYRIGHT
Copyright (c) 2005 Chris Winters. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
AUTHORS
Chris Winters <chris@cwinters.com>