wisest owl (wisest_owl) wrote in changelog,
wisest owl
wisest_owl
changelog

[livejournal] r17829: LJSUP-7460. Post date is incorrect

Committer: gprochaev
LJSUP-7460. Post date is incorrect

U   trunk/cgi-bin/LJ/Widget/Browse.pm
Modified: trunk/cgi-bin/LJ/Widget/Browse.pm
===================================================================
--- trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-30 09:18:54 UTC (rev 17828)
+++ trunk/cgi-bin/LJ/Widget/Browse.pm	2010-11-30 09:39:46 UTC (rev 17829)
@@ -236,7 +236,8 @@
             $post_count++;
             next if $post_count <= $post_skip || $post_count > $post_last;
 
-            my $secondsold = $entry->logtime_unix ? time() - $entry->logtime_unix : undef;
+            my $logtime = LJ::TimeUtil->mysqldate_to_time($entry->{logtime}, 0);
+            my $secondsold = $logtime ? time() - $logtime : undef;
             my $poster = $entry->poster;
             my $userpic = $entry->userpic;
             my @tags = $entry->tags;

Tags: livejournal, pm, wisest-owl
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