Fix unix/windows time issues