php date_sunset off by one hour -
the latitude, longitude, , utc offset of following should return sunset time clearwater beach, fl. given today's date, 7/25/17, returns 19:28, while should return 20:28. doing wrong?
<?php header("cache-control: no-cache, must-revalidate"); // http/1.1 date_default_timezone_set("america/new_york"); $month = $_get["month"]; $day = $_get["day"]; $year = $_get["year"]; echo date_sunset(mktime(0,0,0,$month,$day,$year), sunfuncs_ret_string, 27.9877222, -82.8281874, 90, -5); ?>
you're passing -5 gmt offset, wrong, est -4 during summer:
eastern standard time (est) when observing standard time (autumn/winter) 5 hours behind coordinated universal time (utc−05:00). eastern daylight time (edt), when observing daylight saving time dst (spring/summer) 4 hours behind coordinated universal time (utc−04:00).
Comments
Post a Comment