Files
Heinrich Schuchardt 7af4196d9e fs: fat: fix seconds in timestamp
The FAT time format stores seconds/2 in bits 4:0. The expression
'tm.tm_sec > 1' is a boolean comparison (yields 0 or 1) where a
right-shift 'tm.tm_sec >> 1' was intended.  As a result every
file timestamp written by U-Boot has its seconds field set to
either 0 or 1, depending on whether tm_sec is greater than 1.

Also fix the indentation of the tm_hour line.

Fixes: ba23c378c5 ("fs: fat: fill creation and change date")
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2026-05-27 17:59:12 -06:00
..
2025-07-24 13:30:20 -06:00
2026-05-27 17:59:12 -06:00
2025-12-10 11:59:38 -06:00
2024-10-11 11:44:48 -06:00
2026-05-18 09:19:56 +02:00
2025-04-02 20:00:59 -06:00
2025-04-02 20:00:59 -06:00