From 4f0ea8d9ad79ff0cf1c05a49d219c2975c226fb0 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Tue, 8 Apr 2008 14:22:20 +0000 Subject: [PATCH] fixed: Calendar date localization can be broken --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/DateTime.pm | 14 +++++++------- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 7101069b3..ba6a40f62 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -7,6 +7,7 @@ - fixed: selecting some field types will crash Thingy - fixed: Thingy: "add" and "edit" permission problem - fixed: EMail field rejects some valid email addresses + - fixed: Calendar date localization can be broken 7.5.9 - fixed: Collaboration System attachments follow site's max size instead of CS's diff --git a/lib/WebGUI/DateTime.pm b/lib/WebGUI/DateTime.pm index 06731caf2..c73c86cd0 100755 --- a/lib/WebGUI/DateTime.pm +++ b/lib/WebGUI/DateTime.pm @@ -157,13 +157,13 @@ sub new { $self = DateTime->from_epoch(epoch=>$_[0], time_zone=>"UTC", locale=>$locale); } - else - { - $self = $class->SUPER::new( - (_splitMysql($_[0])), - time_zone => "UTC", - ); - } + else { + $self = $class->SUPER::new( + _splitMysql($_[0]), + time_zone => "UTC", + locale => $locale, + ); + } #Set the session object $self->{_session} = $session;