A minor feature enhancement that would be great is support for the
standard timezone 'Z' which is an alias for UTC. It is frequently used
both in the ICal spec, and in the W3CDTF profile[1] which is the standard
time format for RSS.
I've attached a small patch to do this.
Thanks again for this amazing module.
kellan
1. http://www.w3.org/TR/NOTE-datetime
--
"the truth is always revolutionary" [antonio gramsci]
[EMAIL PROTECTED]
diff -Naur DateTime/TimeZone.pm DateTime_Z/TimeZone.pm
--- DateTime/TimeZone.pm 2003-02-13 06:57:56.000000000 +0000
+++ DateTime_Z/TimeZone.pm 2003-02-13 06:58:25.000000000 +0000
@@ -49,7 +49,7 @@
( offset => $gm - $local );
}
- if ( $p{name} eq 'UTC' )
+ if ( $p{name} eq 'UTC' or $p{name} eq 'Z')
{
return DateTime::TimeZone::UTC->new;
}