[Rt-commit] rt branch, 4.4/localizeddatetime, created. rt-4.4.1-112-gc993443

Alex Vandiver alexmv at bestpractical.com
Fri Sep 16 09:18:16 EDT 2016


The branch, 4.4/localizeddatetime has been created
        at  c9934435c149ab3833e0c8585e65125551626477 (commit)

- Log -----------------------------------------------------------------
commit c9934435c149ab3833e0c8585e65125551626477
Author: Michael Späth <mspaeth at kevag-telekom.de>
Date:   Fri Sep 16 06:15:30 2016 -0700

    Make RT::Date::LocalizedDateTime respect the passed-in Timezone
    
    The refactoring in 99d85602 omitted passing `%args` down to the new
    `DateTimeObj`, leading it to lack the `Timezone` that was passed to
    `LocalizedTimeZone`.
    
    Though it only needs the Timezone argument, pass all parameters
    through to `DateTimeObj`.
    
    Fixes: I#32315

diff --git a/lib/RT/Date.pm b/lib/RT/Date.pm
index 4417016..8528952 100644
--- a/lib/RT/Date.pm
+++ b/lib/RT/Date.pm
@@ -818,7 +818,7 @@ sub LocalizedDateTime
                  @_,
                );
 
-    my $dt = $self->DateTimeObj;
+    my $dt = $self->DateTimeObj(%args);
 
     # Require valid names for the format methods
     my $date_format = $args{DateFormat} =~ /^\w+$/

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


More information about the rt-commit mailing list