juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r10206: LJSUP-8089 St. Patrick day

Committer: iaskarov
LJSUP-8089 St. Patrick day
U   trunk/cgi-bin/LJ/Hooks/Homepage.pm
Modified: trunk/cgi-bin/LJ/Hooks/Homepage.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-03-09 12:58:08 UTC (rev 10205)
+++ trunk/cgi-bin/LJ/Hooks/Homepage.pm	2011-03-09 13:27:03 UTC (rev 10206)
@@ -53,8 +53,6 @@
     
     # my $dt = DateTime->new( year => 2011, month => 3, day => 17, hour => 0, minute => 0, second => 0, time_zone => $is_sup ? 'Europe/Moscow' : 'UTC', );
     # my $sp_start = $dt->epoch(); my $sp_end   = $sp_start + 86400;
-    
-    my $cur_time = $is_sup ? time() + 10800 : time();
 
     # 2011-03-17 till 2011-03-17 in GMT and MSC 
     if($is_sup) {
@@ -63,7 +61,7 @@
         ($sp_start, $sp_end) = (1300320000, 1300406400);
     }
 
-    if ($cur_time >= $sp_start && $cur_time <= $sp_end) {
+    if (time() >= $sp_start && time() <= $sp_end) {
         LJ::need_res("stc/reskining/2011/march/stpd/header.css");
         
         my $text = LJ::Lang::ml('reskining.stpd2011');

Tags: juks, ljcom, 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