Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 04-12-2014, 02:23 AM   #1
tempura
Connoisseur
tempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipedia
 
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
Searching by date does not consider System Locale when using ambiguous dates

I just had a little error while searching with dates in Calibre 1.32 and 1.31 on Windows 7 x86 or 32 bit. For some odd reason, the search does not consider the System locale when searching for ambiguous dates. For example I was searching for
Code:
date:10/04/14
on a dd/mm/yy or dd/mm/yyyy Locale(which I verified in my Control Panel, just in case) which does not display any result.

But when I search for:
Code:
date:10/04/13
The results displayed are for all the records containing the Date, "04 Oct 2013" thereby connoting it is using a mm/dd/yy format which is odd because, I also checked the Calibre manual just in case, I was not doing something correctly, and here's what the manual says:
Quote:
If the date is ambiguous, the current locale is used for date comparison. For example, in an mm/dd/yyyy locale 2/1/2009 is interpreted as 1 Feb 2009. In a dd/mm/yyyy locale it is interpreted as 2 Jan 2009.
Side Note: I also tested searching with the code,
Code:
date:27/03/14
and
Code:
date:03/27/14
which show perfectly all the records with the Date, "27 Mar 2014".

Also searching by:
Code:
date:"10 Apr 2014"
just displays all the records with Date from "1 Jan 2014" till today i.e. "12 April 2014". Though this might quite possibly be due to wrong syntax.

So, is it that I am doing something wrong or that it's a bug?

Last edited by tempura; 04-12-2014 at 03:01 AM.
tempura is offline   Reply With Quote
Old 04-12-2014, 04:35 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,364
Karma: 27230406
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
https://github.com/kovidgoyal/calibr...6219ca9733b82b
kovidgoyal is offline   Reply With Quote
Advert
Old 04-12-2014, 06:31 AM   #3
tempura
Connoisseur
tempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipediatempura knows more than wikipedia
 
Posts: 71
Karma: 47102
Join Date: Dec 2013
Location: Outside the Universe
Device: Kindle PW3
Thanks Kovid once again for the quick fix. Now I have to wait for the next release.
tempura is offline   Reply With Quote
Reply

Tags
date, search

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Searching future dates diazlaz Calibre 9 02-02-2014 11:05 PM
How to show/sort system date of a (epub) file PalingB Library Management 11 05-12-2012 11:46 AM
Searching Published matching Date Perkin Library Management 0 09-22-2011 05:35 AM
Pocket Pro System Date Yanikou Astak EZReader 4 09-17-2009 12:57 PM
is it possible ? (displaying picture after booting linked to system time /date) duncid Kindle Developer's Corner 0 05-21-2009 05:45 PM


All times are GMT -4. The time now is 11:25 PM.


MobileRead.com is a privately owned, operated and funded community.