Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add appStartTs to WidgetEnv. Make Timestamp a newtype #103

Merged
merged 9 commits into from
Mar 26, 2022

Conversation

fjvallarino
Copy link
Owner

WidgetEnv's timestamp field starts from zero every time the application is run, but sometimes it's useful to have the complete UNIX timestamp. To account for this, the _weAppStartTs field was added.

All the places that rely on timestamps have been updated to use the Timestamp type instead of Int. To improve type safety, Timestamp has been turned into a newtype.

@fjvallarino fjvallarino changed the title Add appStartTs to WidgetEnv. Make Timestamp a newtype. Add appStartTs to WidgetEnv. Make Timestamp a newtype Mar 25, 2022
@fjvallarino fjvallarino merged commit b6f1ad2 into main Mar 26, 2022
@fjvallarino fjvallarino deleted the chore/add-wenv-start-time branch March 26, 2022 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant