Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Re: [PATCH 1/1] Fix date checking in case if time was not initialized.

From: Mike Gorchak <hidden>
Date: 2016-06-15 22:56:15

quoted
So is_date() always return negative result for the text string where
date is placed before time like '2008-02-14 20:30:45'.
Yes, it returns this -1 on other platforms, but...
quoted
It must fail on
other platforms as well.
It also fails under Linux, but real problem is not here, it is just an
unoptimal date parser.
... the input '2008-02-14 20:30:45' still parses fine for others
(including me).  That is what is puzzling.
A shot in the dark: perhaps your time_t is unsigned?
Yeah, it was a headshot :) It really due to unsigned time_t. I will
send two patches right now with fixes regarding unsigned time_t
comparison.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help