Time zones (again)

Thiago Macieira thiago at macieira.org
Tue Jun 21 09:08:49 PDT 2016


On terça-feira, 21 de junho de 2016 01:09:16 PDT Linus Torvalds wrote:
> The "fromTime_t()" function was an example of such a case : ostensibly the
> right thing to use (converts from a time_t, which was exactly what we
> wanted) but doesn't take a timezone input.

We didn't update it with a timezone argument because...

> Of course, "fromTime_t()" was then also completely broken in that it
> limited the input to an unsigned integer, which was just incredibly broken
> and doesn't actually match time_t at all. So the whole function was just
> shit. But there may be similar gotchas elsewhere.

That function is totally busted, as you've noticed. Not fixing is a 
discouragement, forcing people to find better alternatives.

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel Open Source Technology Center



More information about the subsurface mailing list