extend buffer size to 40 from 30
( gcc not support put_time() now )