tweak strftime, catch errors