[Ovmsdev] Default values and fields...

Michael Balzer dexter at expeedo.de
Fri Jun 8 02:59:00 HKT 2018


Mark,

no, st_mtime is UTC. The bug here…

>     struct tm tm = {
>         .tm_mday = fdate.mday,
>         .tm_mon = fdate.mon - 1,    /* unlike tm_mday, tm_mon is zero-based */
>         .tm_year = fdate.year + 80,
>         .tm_sec = ftime.sec * 2,
>         .tm_min = ftime.min,
>         .tm_hour = ftime.hour
>     };
>     st->st_mtime = mktime(&tm);

…is vfs_fat_stat() doesn't set tm_isdst = -1 (auto), so it remains 0 telling mktime() to generally not apply DST.

With that added, the timezone"CET-1CEST,M3.5.0,M10.5.0/3" works correctly. I've pushed the fix to our esp-idf repository.

I'll include the timezone list in the web UI then.

Regards,
Michael

-- 
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openvehicles.com/pipermail/ovmsdev/attachments/20180607/85baaa06/attachment.htm>


More information about the OvmsDev mailing list