Skip to content
Browse files

Changed rfc2822 to set UTC explicitly now, as DateTime.now uses local…

… TZ.
  • Loading branch information...
1 parent 75524e8 commit debc8f397f6d1807582389a8e7af20e994db3276 @supernovus committed Oct 24, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/DateTime/Utils.pm
View
2 lib/DateTime/Utils.pm
@@ -93,7 +93,7 @@ module DateTime::Utils {
}
# Pulled from Perlite::Time, introducing rfc2822 datestamps.
- sub rfc2822(DateTime $dt=DateTime.now) is export(:DEFAULT) {
+ sub rfc2822(DateTime $dt=DateTime.now(:timezone(0))) is export(:DEFAULT) {
strftime('%a, %d %b %Y %T %z', $dt);
}

0 comments on commit debc8f3

Please sign in to comment.
Something went wrong with that request. Please try again.