On Thursday, July 12, 2012 06:49:35 PM Dustin Parker wrote:
> Huh, the CS-W 2.0.2 spec doesn't mention time zones in their grammar,
> just 'Z'. Anyway, this code:
>
> private String extractTime(String cqlDateTime) {
> // splits dateTime to get the Time and time zone in the second array element
> String strUpper = cqlDateTime.toUpperCase();
> String[] dateTime = strUpper.split("T");
> assert dateTime.length >= 2 : "date and time is required by the sintax
> rule";
> // splits the time and time zone
> String[] time = dateTime[1].split("[+|-|Z]");
> return time[0]; // the time
> } Doesn't work because the regex is wrong; it should be "[-+Z]".
>
> Thanks,
I will patch the next week .
Thanks for your observation
--
Mauricio Pazos
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel