bugfix: using date in RFC 5322 format increases stability

This commit is contained in:
Ämin Baumeler 2025-06-16 21:31:07 +02:00
parent 1093bc15e5
commit cb84445159

View File

@ -1031,6 +1031,7 @@ export COLLECTION_LABELS DAY_START DAY_END AWK_DAYVIEW AWK_WEEKVIEW AWK_PARSE
# __export() # __export()
# Re-export dynamical variables to subshells. # Re-export dynamical variables to subshells.
__export() { __export() {
DISPLAY_DATE=$(date -R -d "$DISPLAY_DATE")
export DISPLAY_DATE WEEKLY_DATA_FILE APPROX_DATA_FILE export DISPLAY_DATE WEEKLY_DATA_FILE APPROX_DATA_FILE
if [ -n "${TZ:-}" ]; then if [ -n "${TZ:-}" ]; then
export TZ export TZ