Hello, We have found that the eCos localtime does not adjust the tm_wday field when the time is adjusted across a day boundary. In fact, it looks like this is intentional based on these comments in cyg_libc_time_normalize_structtm.
//////////////////////////////////////// // cyg_libc_time_normalize_structtm() // //////////////////////////////////////// // // cyg_libc_time_normalize_structtm() will adjust the fields of a struct tm // so that they are within the normal ranges expected. // tm_wday, tm_yday and tm_isdst are ignored I don't see anything in the POSIX definition of localtime that states the tm_wday field does not need to be adjusted. Is this considered a bug? Thanks, -Mat -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
