Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[livejournal] r21537: LJSUP-11603 (optimize performance of S2 ...

Committer: ailyin
LJSUP-11603 (optimize performance of S2 comments pages)
U   trunk/cgi-bin/LJ/S2/EntryPage.pm
Modified: trunk/cgi-bin/LJ/S2/EntryPage.pm
===================================================================
--- trunk/cgi-bin/LJ/S2/EntryPage.pm	2012-03-23 14:23:52 UTC (rev 21536)
+++ trunk/cgi-bin/LJ/S2/EntryPage.pm	2012-03-26 07:39:22 UTC (rev 21537)
@@ -146,8 +146,7 @@
 
     my $tz_remote;
     if ($remote) {
-        my $tz = $remote->prop("timezone");
-        $tz_remote = $tz ? eval { DateTime::TimeZone->new( name => $tz); } : undef;
+        $tz_remote = $remote->prop('timezone') || undef;
     }
 
     my $pics = LJ::Talk::get_subjecticons()->{'pic'};  # hashref of imgname => { w, h, img }

Tags: ailyin, andy, livejournal, pm
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments