Re: [HACKERS] Stumbled upon a time bug...

2002-04-15 Thread Thomas Lockhart
> Is PostgreSQL broken? Or is it FreeBSD? Both at most. FreeBSD at least ;) The Posix definition for mktime() insists that the function return "-1" if it has an error. Which also happens to correspond to 1 second earlier than 1970-01-01, causing trouble for supporting *any* times before 1970. P

[HACKERS] Stumbled upon a time bug...

2002-04-15 Thread Rod Taylor
Is PostgreSQL broken? Or is it FreeBSD? -- http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/36954 PostgreSQL does not currently check the results of mktime(). On a border condition, mktime() fails and would populate invalid data into the database. Most other *NIX's see