View Single Post
  #2 (permalink)  
Old 08-07-2007, 04:03 PM
shanePreater shanePreater is offline
Member
 
Join Date: Jul 2007
Location: England, Bath
Posts: 47
shanePreater is on a distinguished road
You need to use HOUR_OF_DAY instead of HOUR as you are trying to use the 24 hour clock.
HOUR is specified in the javadoc as :

Field number for get and set indicating the hour of the morning or afternoon. HOUR is used for the 12-hour clock. E.g., at 10:04:15.250 PM the HOUR is 10.

so it is rolling the time forwards by 12 hours from what you requested hence 09 the next day instead of 21 the right day.

Hope this makes sense,
Shane.
__________________
Shane Preater -
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
Reply With Quote