fixes an issue with signed/unsigned comparison
more gcc put_time debugging