Skip to content

Commit

Permalink
use ISO date formats by default
Browse files Browse the repository at this point in the history
  • Loading branch information
vergoh committed Mar 10, 2018
1 parent df66e52 commit b6aaf0b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions cfg/vnstat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ MonthRotate 1

# date output formats for -d, -m, -t and -w
# see 'man date' for control codes
DayFormat "%x"
MonthFormat "%b '%y"
TopFormat "%x"
DayFormat "%Y-%m-%d"
MonthFormat "%Y-%m"
TopFormat "%Y-%m-%d"

# characters used for visuals
RXCharacter "%"
Expand Down Expand Up @@ -152,7 +152,7 @@ PidFile "/var/run/vnstat/vnstat.pid"
##

# title timestamp format
HeaderFormat "%x %H:%M"
HeaderFormat "%Y-%m-%d %H:%M"

# show hours with rate (1 = enabled, 0 = disabled)
HourlyRate 1
Expand Down
10 changes: 5 additions & 5 deletions src/common.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ and most can be changed later from the config file.
#define MONTHROTATE 1

/* date output formats for -d, -m, -t and image header*/
/* see 'man date' for control codes <1.8 values */
#define DFORMAT "%x" /* "%d.%m." */
#define MFORMAT "%b '%y" /* "%b '%y" */
#define TFORMAT "%x" /* "%d.%m.%y" */
#define HFORMAT "%x %H:%M" /* "%d.%m.%Y %H:%M" */
/* see 'man date' for control codes 1.x values <1.8 values */
#define DFORMAT "%Y-%m-%d" /* "%x" "%d.%m." */
#define MFORMAT "%Y-%m" /* "%b '%y" "%b '%y" */
#define TFORMAT "%Y-%m-%d" /* "%x" "%d.%m.%y" */
#define HFORMAT "%Y-%m-%d %H:%M" /* "%x %H:%M" "%d.%m.%Y %H:%M" */

/* characters used for visuals */
#define RXCHAR "%"
Expand Down

0 comments on commit b6aaf0b

Please sign in to comment.