madeon (madeon) wrote in changelog,
madeon
madeon
changelog

[livejournal] r22468: LJSUP-12836: Create additional notificat...

Committer: sbelyaev
LJSUP-12836: Create additional notification on day of birthday
U   trunk/bin/worker/birthday-notify
Modified: trunk/bin/worker/birthday-notify
===================================================================
--- trunk/bin/worker/birthday-notify	2012-07-18 14:11:19 UTC (rev 22467)
+++ trunk/bin/worker/birthday-notify	2012-07-18 14:13:37 UTC (rev 22468)
@@ -129,7 +129,7 @@
         debug("Firing off notification for " . $u->user);
         LJ::Event::Birthday->new($u)->fire;
 
-        my $birthday_time = time() - $bdays->{$u->id} - 86400;
+        my $birthday_time = $bdays->{$u->id} - time() - 86400;
         LJ::Event::Birthday->new($u, $birthday_time)->fire;
         $ct++;
     }

Tags: livejournal, madeon, sbelyaev
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