]> git.mxchange.org Git - friendica.git/commitdiff
ensure birthday "today" calculation is relative to UTC.
authorFriendika <info@friendika.com>
Mon, 17 Jan 2011 10:51:26 +0000 (02:51 -0800)
committerFriendika <info@friendika.com>
Mon, 17 Jan 2011 10:51:26 +0000 (02:51 -0800)
boot.php

index ac577887caee4e22967672e750c540c7b5e9c47a..d8549d5c0ae2445f9af63133fe4e28b6dd260ed2 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -2163,7 +2163,7 @@ function get_birthdays() {
 
                foreach($r as $rr) {
                        $now = strtotime('now');
-                       $today = (((strtotime($rr['start']) < $now) && (strtotime($rr['finish']) > $now)) ? true : false); 
+                       $today = (((strtotime($rr['start'] . ' +00:00') < $now) && (strtotime($rr['finish'] . ' +00:00') > $now)) ? true : false); 
 
                        $o .= '<div class="birthday-list" id="birthday-' . $rr['eid'] . '"><a class="sparkle" href="' 
                        . $a->get_baseurl() . '/redir/'  . $rr['cid'] . '">' . $rr['name'] . '</a> '