[
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-636?pag...
]
Sanne Grinovero commented on HSEARCH-636:
-----------------------------------------
You're not the first one having trouble with timezones. I'm wondering, should
people willing to do a query on date ranges actually use resolution.HOUR, so that matches
are returned in the proper range according to their timezone, othewise you have "some
hours" which might result on different dates. That would avoid your issue right?
I'd be glad to accept a documentation patch do add a short warning to consider this.
DateBridge substracts one day from date
---------------------------------------
Key: HSEARCH-636
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HSEARCH-636
Project: Hibernate Search
Issue Type: Bug
Affects Versions: 3.3.0.CR1
Environment: Lucene 3.0.2
Reporter: Marc Schipperheyn
I find that the public String objectToString(Object object) in the DateBridge class
consistently returns a date that's one day before the date being passed.
A Date object with date 2011-12-12 will become a string representation of 2011-12-11.
Since the Lucene core DateTools are used, I assume the problem lies there and you might
want to consider moving to another date library.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira