fixed strftime bug