TadLeonard / tfatool

Tools for managing files with the Toshiba FlashAir wireless SD card

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

local vs. remote timezone doesn't match

TadLeonard opened this issue · comments

It's probably most convenient to assume that FlashAir's files were created in the user's local timezone. Right now we're using arrow.get without a tzinfo argument, which gives us a UTC time for encoding/decoding.

On the upload side of things, we need to convert our os.stat() mtime value with arrow.get(timestamp).to("local"). On the download/remote file listing side, we need to decode the FAT32 timestamp with arrow.get(*decoded_values, tzinfo="local").

Download timezone bug fixed in v2.2.1. Upload timezone bug fixed in v2.2.2.