Skip to content

EventHandler doesn't handle start date with time #135

@ArnyminerZ

Description

@ArnyminerZ

See bitfireAT/davx5-ose#1797.

To reproduce:

@Test
fun testStartDate_WithTime() {
    val contact = Contact()
    EventHandler.handle(ContentValues().apply {
        put(Event.START_DATE, "2013-11-06T00:00:00.000Z")
    }, contact)
    assertEquals(
        LocalDateTime.of(2013, 11,  6, 0, 0),
        contact.customDates[0].property.date
    )
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcontacts

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions