-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Mod modified time format #1536
Mod modified time format #1536
Conversation
Some people like the current behavior. It must be set as a user config param |
@@ -214,6 +215,7 @@ | |||
"rules": "Rules", | |||
"rulesHelp": "Here you can define a set of allow and disallow rules for this specific user. The blocked files won't show up in the listings and they wont be accessible to the user. We support regex and paths relative to the users scope.\n", | |||
"scope": "Scope", | |||
"setDateFormat": "Set exact date format", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
duplicate of line 30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I copy the feture "hit dot files" to implement the issue.
there are two "hit dot files" settings in en.json
I'll commit that
@@ -106,6 +106,9 @@ export default { | |||
return filesize(this.size); | |||
}, | |||
humanTime: function () { | |||
if (this.user.dateFormat) { | |||
return moment(this.modified).format("YYYY-MM-DD HH:mm"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return moment(this.modified).format("YYYY-MM-DD HH:mm"); | |
return moment(this.modified).format("L LT"); |
FileBrowser supports multiples languages, dates should be displayed with a localized format.
great
Ramires Viana ***@***.***> 于2021年9月9日周四 下午8:30写道:
… ***@***.**** commented on this pull request.
------------------------------
In frontend/src/components/files/ListingItem.vue
<#1536 (comment)>
:
> @@ -106,6 +106,9 @@ export default {
return filesize(this.size);
},
humanTime: function () {
+ if (this.user.dateFormat) {
+ return moment(this.modified).format("YYYY-MM-DD HH:mm");
⬇️ Suggested change
- return moment(this.modified).format("YYYY-MM-DD HH:mm");
+ return moment(this.modified).format("L LT");
FileBrowser supports multiples languages, dates should be displayed with a
localized format.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1536 (review)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AVA3DSAKGJZ3DNAZ3ZBE6ZLUBCSFNANCNFSM5DLLPVAQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Description
Add setting for exact date format.
Default: previous "from now" format
After setting: display "YYYY-MM-DD HH:mm" format
#1525