Skip to content

Error parsing Date with DateTime #45

@GoogleCodeExporter

Description

@GoogleCodeExporter
Version of google-api-java-client (e.g. 1.1.0-alpha)? 1.1.0-alpha


Java environment (e.g. Java 6, Android 2.2, App Engine 1.3.7)? 1.6


Describe the problem.
This test currently failed, when hour = 24. Replace hour=24 by hour=0 to solve 
the issue in the parseRfc3339.

DateTime date2 = DateTime.parseRfc3339("2010-10-18T24:31:49Z");
        calendar.setTimeInMillis(date2.value);
        assertEquals(18,calendar.get(GregorianCalendar.DAY_OF_MONTH));


How would you expect it to be fixed?


Original issue reported on code.google.com by olivier....@gmail.com on 18 Oct 2010 at 1:15

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions