fix ucam date calculation when using less-than-stellar mktime implementation