RE: DateTools oddity....

2006-10-18 Thread Paul Snyder
ne.apache.org Subject: Re: DateTools oddity Dang it :) Anyway to set timezone? Emmanuel Bernard wrote: > DateTools use GMT as a timezone >Tue Aug 01 21:15:45 EDT 2006 >Wed Aug 02 02:15:45 EDT 2006 > > Michael J. Prichard wrote: > >> >> When I run this ja

Re: DateTools oddity....

2006-10-18 Thread Emmanuel Bernard
No, but using a constant timezone is a good thing anyway since the index will not keep track of the info. And will not really care as long as you always use DateTools (index and search). You can always rewrite DateTools with your own timezone, but EDT is bad since it is vulnerable to Day light s

Re: DateTools oddity....

2006-10-18 Thread Michael J. Prichard
Dang it :) Anyway to set timezone? Emmanuel Bernard wrote: DateTools use GMT as a timezone Tue Aug 01 21:15:45 EDT 2006 Wed Aug 02 02:15:45 EDT 2006 Michael J. Prichard wrote: When I run this java code: Long dates = new Long("1154481345000"); Date dada = new Date(dates.longV

Re: DateTools oddity....

2006-10-18 Thread Doug Cutting
Michael J. Prichard wrote: I get this output: Tue Aug 01 21:15:45 EDT 2006 That's August 2, 2006 at 01:15:45 GMT. 20060802 Huh?! Should it be: 20060801 DateTools uses GMT. Doug - To unsubscribe, e-mail: [EMAIL

Re: DateTools oddity....

2006-10-18 Thread Emmanuel Bernard
DateTools use GMT as a timezone Tue Aug 01 21:15:45 EDT 2006 Wed Aug 02 02:15:45 EDT 2006 Michael J. Prichard wrote: When I run this java code: Long dates = new Long("1154481345000"); Date dada = new Date(dates.longValue()); System.out.println(dada.toString()); System.out

DateTools oddity....

2006-10-18 Thread Michael J. Prichard
When I run this java code: Long dates = new Long("1154481345000"); Date dada = new Date(dates.longValue()); System.out.println(dada.toString()); System.out.println(DateTools.dateToString(dada, DateTools.Resolution.DAY)); I get this output: Tue Aug 01 21:15:45 EDT 2006 200608