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;