mirror of
https://github.com/nicolargo/glances.git
synced 2026-05-03 04:05:07 -04:00
The Web interface ignores the strftime_format parameter #2939
This commit is contained in:
@@ -13,7 +13,8 @@ check_update=true
|
||||
# Default is 1200 values (~1h with the default refresh rate)
|
||||
history_size=1200
|
||||
# Set the way Glances should display the date (default is %Y-%m-%d %H:%M:%S %Z)
|
||||
#strftime_format="%Y-%m-%d %H:%M:%S %Z"
|
||||
# strftime_format=%Y-%m-%d %H:%M:%S %Z
|
||||
strftime_format=%Y-%m-%d
|
||||
# Define external directory for loading additional plugins
|
||||
# The layout follows the glances standard for plugin definitions
|
||||
#plugin_dir=/home/user/dev/plugins
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<section id="now" class="plugin">
|
||||
<div class="table-row">
|
||||
<div class="table-cell text-left">{{ localDate(date_iso) }}</div>
|
||||
<div class="table-cell text-left">{{ date_custom }}</div>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
@@ -14,13 +14,8 @@ export default {
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
date_iso() {
|
||||
return this.data.stats['now']['iso'];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
localDate(date) {
|
||||
return new Date(date).toLocaleString();
|
||||
date_custom() {
|
||||
return this.data.stats['now']['custom'];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
840
glances/outputs/static/package-lock.json
generated
840
glances/outputs/static/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
BIN
glances/outputs/static/public/glances.js
vendored
BIN
glances/outputs/static/public/glances.js
vendored
Binary file not shown.
Reference in New Issue
Block a user