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

Use relative dates & Shorter default date format #440

Open
christianhans opened this Issue Dec 8, 2018 · 6 comments

Comments

Projects
None yet
3 participants
@christianhans
Copy link

christianhans commented Dec 8, 2018

In the sidebar: Instead of displaying the full date and time underneath each note, why not display a relative timestamp if applicable? E.g. Today, 8:12 am instead of Saturday, Dec 08 2018, 8:12 am. Other examples:

Yesterday, 12:10 pm
2 days ago, 12:10 pm
3 days ago, 12:10 pm
12/04/18, 12:10 pm

Note the last example, instead of displaying the currently used much longer date format, default to a shorter version if the date is longer than 3 days ago.

@mobitar

This comment has been minimized.

Copy link
Member

mobitar commented Dec 8, 2018

We're not using any external datetime libraries, which would be required to do something like this.

@christianhans

This comment has been minimized.

Copy link
Author

christianhans commented Dec 11, 2018

I see. Would that cause any problems?

@mobitar

This comment has been minimized.

Copy link
Member

mobitar commented Dec 11, 2018

Would integrating a third party library cause any problems? Just adds dependencies. Too many dependencies make the application more difficult to maintain over time.

@sorin-davidoi

This comment has been minimized.

Copy link

sorin-davidoi commented Jan 20, 2019

Intl.RelativeTimeFormat could be used in supported browsers (Firefox and Chrome currently).

@mobitar mobitar closed this Jan 29, 2019

@christianhans

This comment has been minimized.

Copy link
Author

christianhans commented Jan 29, 2019

Why was this closed?

@mobitar mobitar transferred this issue from standardnotes/web Jan 29, 2019

@mobitar

This comment has been minimized.

Copy link
Member

mobitar commented Jan 29, 2019

Repo issues are for bugs. Moved to forum for long term discussion.

@mobitar mobitar reopened this Jan 29, 2019

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