fix #6913: on OSX, use mktime inside strptime to compute wday and yday