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

Modified date time in list view is displayed incorrectly #2

Closed
Noboxulus opened this issue Apr 8, 2019 · 2 comments
Closed

Modified date time in list view is displayed incorrectly #2

Noboxulus opened this issue Apr 8, 2019 · 2 comments

Comments

@Noboxulus
Copy link

Noboxulus commented Apr 8, 2019

It is caused by the highlighted line in src/pages/contents.vue:

image

changing the line to the below fixes it for me:
return moment.utc(node.data.stat.mtime).format('YYYY-DD-MM h:mm:ss a')

for those who want to display local time and not UTC time (using the locale of your machine/device):
return moment.utc(node.data.stat.mtime).local().format('YYYY-DD-MM h:mm:ss a')

@hawkeye64
Copy link
Owner

Thanks for finding this issue and the fix.
I'll be taking a look at this on the weekend.

@hawkeye64
Copy link
Owner

Fixed in latest. And, thanks again.

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

No branches or pull requests

2 participants