Skip to content

UtcOffset.parse inconsistency #242

Closed
@silverhammermba

Description

@silverhammermba

With version 0.4.0, this passes

val x = UtcOffset.parse("+4")
val y = UtcOffset.parse("+04")
assertEquals(x, y)

This fails

val a = UtcOffset.parse("+4:00")
val b = UtcOffset.parse("+04:00")
assertEquals(a, b)

My understanding of the standard is that +4 should be invalid, but I care more that the parsing is consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking changeThis could break existing codedocumentationImprovements or additions to documentationformattersRelated to parsing and formatting

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions