[Rt-commit] rt branch, 4.0/parse-cf-date-in-user-timezone, created. rt-4.0.9-13-g99f47db
? sunnavy
sunnavy at bestpractical.com
Tue Jan 22 09:15:31 EST 2013
The branch, 4.0/parse-cf-date-in-user-timezone has been created
at 99f47db89d27573d827a6301b8c7e896e502f75a (commit)
- Log -----------------------------------------------------------------
commit 99f47db89d27573d827a6301b8c7e896e502f75a
Author: sunnavy <sunnavy at bestpractical.com>
Date: Tue Jan 22 21:55:22 2013 +0800
parse cf date in user's timezone to make it right for strings like "today", "tomorrow", etc
diff --git a/lib/RT/CustomField.pm b/lib/RT/CustomField.pm
index 14babff..4094dcd 100644
--- a/lib/RT/CustomField.pm
+++ b/lib/RT/CustomField.pm
@@ -1539,9 +1539,8 @@ sub _CanonicalizeValueDate {
my $DateObj = RT::Date->new( $self->CurrentUser );
$DateObj->Set( Format => 'unknown',
Value => $args->{'Content'},
- Timezone => 'UTC',
);
- $args->{'Content'} = $DateObj->Date( Timezone => 'UTC' );
+ $args->{'Content'} = $DateObj->Date( Timezone => 'user' );
}
=head2 MatchPattern STRING
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list