Skip to content

Commit

Permalink
Add hooks to get the current time and timezone (#2824)
Browse files Browse the repository at this point in the history
This Pull Request changes the following:

- Adds two new hooks to `HostHooks` to access the current UTC time and the current timezone offset.
- Replaces usages of `Local` with the host hook.
- Replaces usages of `Utc::now` and `Local::now` with the hooks.

cc @lastmjs
  • Loading branch information
jedel1043 committed Apr 15, 2023
1 parent a12f10e commit 9dc4dd1
Show file tree
Hide file tree
Showing 5 changed files with 153 additions and 117 deletions.
Loading

0 comments on commit 9dc4dd1

Please sign in to comment.