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

Recent activity times are in UTC instead of the set timezone #324

Closed
Nixinova opened this issue May 25, 2021 · 1 comment · Fixed by #326
Closed

Recent activity times are in UTC instead of the set timezone #324

Nixinova opened this issue May 25, 2021 · 1 comment · Fixed by #326

Comments

@Nixinova
Copy link
Contributor

When displaying the timestamp of an activity the timezone is not passed to it so it displays in UTC.

Screenshot_20210525-165211

<%= f.date(timestamp, {timeStyle:"short", dateStyle:"short"}) %>

The following I think would fix it (is config available directly in the partials?)

+ <%= f.date(timestamp, {timeStyle:"short", dateStyle:"short", timeZone:config.timezone}) %>
@lowlighter
Copy link
Owner

I checked quickly and it should be accessible through config.timezone?.name from within partials (config.timezone may be undefined if user didn't provide it)

@github-actions github-actions bot locked and limited conversation to collaborators Jun 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants