note 93523 rejected from function.date-sunrise by danbrown

From: Date: Mon, 14 Sep 2009 16:56:42 +0000
Subject: note 93523 rejected from function.date-sunrise by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160553@lists.php.net to get a copy of this message
Note Submitter: olav dot morkrid at gmail dot com ---- Shouldn't this function have returned the sunrise in local time automatically? That is, if i check sunrise for Beijing, I should get the sunrise time in Beijing time automatically. Today I have to manually specify that I want Beijing time, otherwise I get it in GMT, which seems like a useless default. If I want local sunrise times for any latitude/longitude in the world, it seems I must use Geonames or a similar database to find the timezone for the given pair of latitude/longitude coordinates before I can use date_sunrise(). Anyone, please let me know if there is any easy way to get the local time automatically.

« previous php.notes (#160553) next »