Skip to content

feat(timezone): Create timezone utilities in shared #171

Description

@masch

Context

Base for full migration to timezone-aware (issue #170). Create reusable utilities.

Scope

  • Define Timezone type as union type (America/Argentina/Buenos_Aires, America/New_York, etc.)
  • Helper getTimezoneOffset(timezone: Timezone): number
  • Helper convertTimeBetweenTimezones(time: string, fromTz: Timezone, toTz: Timezone): string
  • Helper formatTimeWithTimezone(time: string, timezone: Timezone, locale: string): string
  • Helper getDeviceTimezone(): Timezone
  • Types DateWithTimezone and DateTimeWithTimezone for future use cases

Dependencies

  • None

Priority

Medium

Labels: enhancement, shared

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status
    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions