improve handling of nonstandard fields in struct tm