Bug 41850 - Minimum and maximum are not always respected when validating time values.
Summary: Minimum and maximum are not always respected when validating time values.
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Spreadsheet (show other bugs)
Version: 3.4.3 release
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Not Assigned
QA Contact:
URL:
Whiteboard: target:3.5
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-16 16:38 UTC by Allan Jacobs
Modified: 2014-01-08 22:40 UTC (History)
2 users (show)

See Also:
i915 platform:
i915 features:


Attachments
Output after data detective has finished validating. (7.86 KB, application/vnd.oasis.opendocument.spreadsheet)
2011-10-16 16:38 UTC, Allan Jacobs
Details

Description Allan Jacobs 2011-10-16 16:38:17 UTC
Created attachment 52401 [details]
Output after data detective has finished validating.

Enter data in a spreadsheet in range A1:A4
10:59:00 PM
11:59:00 PM
12:01:00 AM
01:00:00 AM

Select range A1:A4
Data->Validity
Allow: Time
between
Minimum: 11:58:00 PM
Maximum: 12:02:00 AM
Tools->Detective-Mark Invalid Data

11:59:00 PM and 12:01:00 AM are marked invalid.  10:59:00 PM and 01:00:00 AM are regarded as valid.  This is the reverse of the true situation.
Comment 1 Markus Mohrhard 2011-10-17 09:43:34 UTC
Ok, I think I know why that happens.

We need to take care of Between and Not Between with time and dates in a different way than we do now. We translate the date to a double value and sort them after that and look if that value is between these two. Since 11:59 PM is bigger than 12:01 AM we inverse our valid range.

I think about a clean way to fix that.
Comment 3 foss 2013-12-08 12:18:10 UTC
Markus: I'm freeing this bug. Just re-assign if you still plan on working on this.
Comment 4 bfoman 2014-01-08 22:40:40 UTC
Back to NEW as this bug lost owner.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.