Title: Message Title
|
|
Issue Type:
|
Bug
|
Affects Versions:
|
13-beta
|
Assignee:
|
Ian Turton
|
Components:
|
main
|
Created:
|
15/Jan/15 3:44 AM
|
Priority:
|
Critical
|
Reporter:
|
Ian Turton
|
|
When calling the TemporalConvertor to convert from a java.util.Date to a java.sql.Date it is possible for the date to be changed if it is in a TimeZone to the east of GMT.
public void testDatetoDate() throws Exception { DateFormat df = new SimpleDateFormat("yyyy-dd-MM"); df.setTimeZone( TimeZone.getTimeZOne("BST")); Date date = df.parse("2009-28-06"); assertNotNull(factory.createConverter(Date.class, java.sql.Date.class, null)); java.sql.Date output = (java.sql.Date) factory.createConverter(Date.class, java.sql.Date.class, null).convert(date, java.sql.Date.class); assertEquals("2009-06-28", output); }
will currently fail
|
|
|
|
|
|
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
GeoTools-Devel mailing list
GeoTools-Devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel