[wpkg-users] [Bug 237] file date comparison returns false, when it is true
bugzilla-daemon at bugzilla.wpkg.org
bugzilla-daemon at bugzilla.wpkg.org
Mon Oct 10 00:19:32 CEST 2011
http://bugzilla.wpkg.org/show_bug.cgi?id=237
Rainer Meier <r.meier at wpkg.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |r.meier at wpkg.org
--- Comment #3 from Rainer Meier <r.meier at wpkg.org> ---
Actually this was not a real bug. WPKG was comparing the time in millisecond
resolution. I could bet your file modification date did not exactly match
"2011-03-28 15:32:56".
However, I agree that reading milliseconds in modification dates from a file
with Windows explorer is not possible. Therefore I think it does not make sense
to compare to anything more precise than 1 second resolution.
As a result I've improved the code. In case a date is specified for comparison
WPKG will only compare in full-second resolution when using equal checks. It
will still use full millisecond comparison when comparing to reference files or
when comparing with newerthan/olderthan operators.
Change will be commited on next SVN checkin.
--
Configure bugmail: http://bugzilla.wpkg.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
More information about the wpkg-users
mailing list