h-yung / trip-organizer

A lightweight mobile-friendly app with serverless API that keeps travel information accessible on the go, with the option to log expenses.
0 stars 0 forks source link

Add timezone support #13

Closed h-yung closed 2 months ago

h-yung commented 2 months ago

User pointed out a major bug: Previously, entering activities would default to the user's local device timezone. Which is a problem if you're entering activities for a trip in another timezone, and providing what would be the times in local time at the destination.

This update (currently still on branch: "auth") allows user to specify timezone for viewing and updating a particular trip. It will use (and display) the default timezone based on the user's device if no custom timezone is specified.

Uses dayjs and the utc and timezone extensions/plugins. https://day.js.org/docs/en/plugin/timezone

h-yung commented 2 months ago

Image

Image

Image

Image

Image