board-status: fix weekly format
The last few days of the year might belong to the first week of the new year in the ISO week numbering scheme. GNU date accounts for that with different-than-usual notation. Change-Id: I8047c197971077a845d6c1fdc9da6eb9f3741539 Signed-off-by: Patrick Georgi <patrick@georgi-clan.de> Reviewed-on: http://review.coreboot.org/4610 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
parent
fd3451d72d
commit
47777569d2
|
@ -4,7 +4,7 @@
|
||||||
# into buckets of the given granularity
|
# into buckets of the given granularity
|
||||||
|
|
||||||
weekly() {
|
weekly() {
|
||||||
date --date="$1" +%YW%V
|
date --date="$1" +%GW%V
|
||||||
}
|
}
|
||||||
|
|
||||||
monthly() {
|
monthly() {
|
||||||
|
|
Loading…
Reference in New Issue