[Rt-commit] rt branch, 4.0/timezoneless-cf-date, created. rt-4.0.7-60-g0613c1a

? sunnavy sunnavy at bestpractical.com
Wed Sep 19 11:39:14 EDT 2012


The branch, 4.0/timezoneless-cf-date has been created
        at  0613c1a9ef74b3664ec3840f883055bde59aa8b5 (commit)

- Log -----------------------------------------------------------------
commit 0613c1a9ef74b3664ec3840f883055bde59aa8b5
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Wed Sep 19 23:33:20 2012 +0800

    date cf should be timezoneless
    
    we should show the same date no matter what date format is.
    
    see also #20856

diff --git a/share/html/Elements/ShowCustomFieldDate b/share/html/Elements/ShowCustomFieldDate
index 8c94c13..2bce717 100644
--- a/share/html/Elements/ShowCustomFieldDate
+++ b/share/html/Elements/ShowCustomFieldDate
@@ -48,8 +48,8 @@
 <%INIT>
  my $content = $Object->Content;
  my $DateObj = RT::Date->new ( $session{'CurrentUser'} );
- $DateObj->Set( Format => 'unknown', Value => $content );
- $content = $DateObj->AsString(Time => 0);
+ $DateObj->Set( Format => 'unknown', Value => $content, Timezone => 'utc'  );
+ $content = $DateObj->AsString(Time => 0, Timezone => 'utc');
 </%INIT>
 <%$content|n%>
 <%ARGS>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list