SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

Date format bug in MailBoxDumpRequest.java #414

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
In docomentation for Google Apps Email Audit API said:

"The date format is yyyy-MM-dd HH:mm where the HH is the hour of the day using 
0 - 23, and the mm is the minutes of the hour using 0 - 59."

But, in Java implementation of API in file MailBoxDumpRequest.java
at line 59 we have code

DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd hh:mm");

"hh" - is wrong format for hour 0 - 59. Correct format is "HH"

Correct code of line 59 will be

DATE_FORMAT = new SimpleDateFormat("yyyy-MM-dd HH:mm");

Thanks!

Original issue reported on code.google.com by petro.no...@gmail.com on 9 Nov 2012 at 3:50