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

DateTime label on messages should be shown in the readers timezone. #1

Open
CrowdHailer opened this issue Apr 20, 2020 · 0 comments
Open

Comments

@CrowdHailer
Copy link
Contributor

At the moment the DateTime formatting is done in the threadpage backend code.

def update_time(message) do
today = "#{Date.utc_today()}"
%Calm.Message{inserted_at: inserted_at} = message
inserted_at
|> DateTime.to_string()
|> String.slice(0, 16)
|> String.replace(today, "Today")
end

This needs to take into account the timezone of the reader and adjust accordingly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant