Devrim Gündüz <devrim@gunduz.org> writes:
> On Sun, 2017-02-19 at 13:48 -0500, Tom Lane wrote:
>> Or conceivably it's timezone dependent?
> FWIW, the timezone of the server is GMT+3, if that is what you are asking.
Well, that test is checking which week-of-the-year a Sunday midnight is
considered to fall into. There could be an edge-case bug in Tcl itself,
or a problem with the time zone data, or maybe if you're setting LC_TIME
to tr_TR, that changes whether weeks are considered to start on Sunday
or Monday? Although if that were the explanation I'd have expected this
test to fail in tr_TR locale on pretty much any platform. Weird.
Whatever, even if it's a bug it's not our bug. I've adjusted the test to
check the following Tuesday, so as to dodge the edge case.
regards, tom lane