Andres Freund <andres(at)anarazel(dot)de> writes:
> It turns out to be dependant on the current timezone. I have just about zero
> understanding how timezones work on windows, so I can't really interpret why
> that causes a problem on windows, but apparently not on linux.
Weird. Unless you're using --with-system-tzdata, I wouldn't expect that
code to work any differently on Windows.
regards, tom lane