[dw-free] Time zone gets reset if you save the /manage/profile/ page
[commit: http://hg.dwscoalition.org/dw-free/rev/1ae0ce3fa5bc]
http://bugs.dwscoalition.org/show_bug.cgi?id=348
Patch by
janinedog.
http://bugs.dwscoalition.org/show_bug.cgi?id=348
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
-------------------------------------------------------------------------------- a/cgi-bin/LJ/Widget/Location.pm Fri Feb 20 20:03:04 2009 +0000 +++ b/cgi-bin/LJ/Widget/Location.pm Sun Feb 22 15:18:47 2009 +0000 @@ -5,7 +5,7 @@ use Carp qw(croak); use Carp qw(croak); use DateTime::TimeZone; -my @location_props = qw/ country state city zip timezone sidx_loc/; +my @location_props = qw/ country state city zip sidx_loc /; sub authas {1} @@ -29,6 +29,8 @@ sub render_body { # use "authas"-aware code my $u = $class->get_effective_remote; + + push @location_props, 'timezone' unless $opts{skip_timezone}; $u->preload_props(@location_props); # displayed country may be specified in %opts hash --------------------------------------------------------------------------------