-
Notifications
You must be signed in to change notification settings - Fork 1
Description
I have a small issue running your code
SELECT CURRENT_TIMESTAMP AT TIME ZONE 'UTC' as UTC, CURRENT_TIMESTAMP AT TIME ZONE 'Pacific/Auckland' as Auckland
utc, auckland
14/04/2025 12:22:59.629772 AM AD,14/04/2025 12:22:59.629772 PM AD
These are correct.
But when I run this
SELECT event, time FROM public.get_sun_times(
CURRENT_TIMESTAMP AT TIME ZONE 'pacific/Auckland',
-43.53,
172.63,
0
);
event,time
solarNoon,14/04/2025 12:30:57.144061 AM+12 AD
nadir,13/04/2025 12:30:57.144061 PM+12 AD
sunrise,13/04/2025 7:01:56.278575 PM+12 AD
sunset,14/04/2025 5:59:58.009546 AM+12 AD
sunriseEnd,13/04/2025 7:04:56.856433 PM+12 AD
sunsetStart,14/04/2025 5:56:57.431688 AM+12 AD
dawn,13/04/2025 6:33:01.216090 PM+12 AD
dusk,14/04/2025 6:28:53.072032 AM+12 AD
nauticalDawn,13/04/2025 5:59:48.685436 PM+12 AD
nauticalDusk,14/04/2025 7:02:05.602685 AM+12 AD
nightEnd,13/04/2025 5:26:41.082216 PM+12 AD
night,14/04/2025 7:35:13.205905 AM+12 AD
goldenHourEnd,13/04/2025 7:41:04.123414 PM+12 AD
goldenHour,14/04/2025 5:20:50.164707 AM+12 AD
The sunrise should be at 7:01am on the 14th of April 2025 +12:00
https://www.timeanddate.com/sun/new-zealand/christchurch
What am I doing wrong?