File tree Expand file tree Collapse file tree 4 files changed +457
-407
lines changed Expand file tree Collapse file tree 4 files changed +457
-407
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ check_update=true
13
13
# Default is 1200 values (~1h with the default refresh rate)
14
14
history_size=1200
15
15
# Set the way Glances should display the date (default is %Y-%m-%d %H:%M:%S %Z)
16
- #strftime_format="%Y-%m-%d %H:%M:%S %Z"
16
+ # strftime_format=%Y-%m-%d %H:%M:%S %Z
17
+ strftime_format=%Y-%m-%d
17
18
# Define external directory for loading additional plugins
18
19
# The layout follows the glances standard for plugin definitions
19
20
#plugin_dir=/home/user/dev/plugins
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<section id =" now" class =" plugin" >
3
3
<div class =" table-row" >
4
- <div class =" table-cell text-left" >{{ localDate(date_iso) }}</div >
4
+ <div class =" table-cell text-left" >{{ date_custom }}</div >
5
5
</div >
6
6
</section >
7
7
</template >
@@ -14,13 +14,8 @@ export default {
14
14
}
15
15
},
16
16
computed: {
17
- date_iso () {
18
- return this .data .stats [' now' ][' iso' ];
19
- }
20
- },
21
- methods: {
22
- localDate (date ) {
23
- return new Date (date).toLocaleString ();
17
+ date_custom () {
18
+ return this .data .stats [' now' ][' custom' ];
24
19
}
25
20
}
26
21
};
You can’t perform that action at this time.
0 commit comments