loading time now works correctly

pull/1886/head
Daniel Banar 2025-09-16 19:34:22 +02:00
parent a172925ec1
commit 25a050e84b
1 changed files with 1 additions and 0 deletions

View File

@ -14,6 +14,7 @@ if [[ "$MODE" == "load" ]]; then
LAST_TS=$(cat "$TIMESTAMP_FILE") LAST_TS=$(cat "$TIMESTAMP_FILE")
if [[ -n "$LAST_TS" ]]; then if [[ -n "$LAST_TS" ]]; then
echo "fake-hwclock: Setting time to $(date -d @"$LAST_TS")" echo "fake-hwclock: Setting time to $(date -d @"$LAST_TS")"
date -s @"$LAST_TS" >/dev/null 2>&1
fi fi
fi fi
elif [[ "$MODE" == "save" ]]; then elif [[ "$MODE" == "save" ]]; then