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

Improved/clarified at-tracking date display format #2958

Merged
merged 3 commits into from
May 17, 2020

Conversation

Vultraz
Copy link
Contributor

@Vultraz Vultraz commented May 13, 2020

Makes this more readable and removes any ambiguity of m/d/y vs d/m/y.

Before:
image

After:
image

Am open to tweaking the format if you guys think it should be something different.

@changeset-bot
Copy link

changeset-bot bot commented May 13, 2020

🦋 Changeset is good to go

Latest commit: 66c4ebf

We got this.

This PR includes changesets to release 1 package
Name Type
@keystonejs/list-plugins Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@VinayaSathyanarayana
Copy link
Contributor

VinayaSathyanarayana commented May 13, 2020

@Vultraz How does this work, when different users are in different time zones? Do we show timestamps converted to user's local timezone or UTC?

@Vultraz
Copy link
Contributor Author

Vultraz commented May 13, 2020

That's a good question, and I'm not entirely sure. Internally, the plugin uses the DateTime field, not DateTimeUtc, so I think it's local time for the person who created it. Could definitely use some clarification, though.

@VinayaSathyanarayana
Copy link
Contributor

Let's use UTC to store the timestamp. Display to be based on user timezone. The timezone of the user can be shown along with the user id field

@timleslie timleslie merged commit 9738e2e into keystonejs:master May 17, 2020
@Vultraz Vultraz deleted the list-tracking-better-formatting branch May 17, 2020 23:06
This was referenced May 17, 2020
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

4 participants