Skip to content

Timezone UTC is not considered equal to +00:00 #10957

@samuelcolvin

Description

@samuelcolvin

Describe the bug

Running

select now() - start_timestamp from records limit 5;

Results in an error:

Cannot coerce arithmetic expression Timestamp(Nanosecond, Some("+00:00")) - Timestamp(Microsecond, Some("UTC")) to valid types

As far as I know UTC is alwasy identical to +00:00 so these two should be considered equivilant?

To Reproduce

No response

Expected behavior

Timezones which are practically equivalent — e.g. have the same offset and DST semantics should allow subtraction to get an interval.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions