time stamp issue fixed

an error occurred if first or last time stamp = „[y]-[m-[d] 00:00:00“
little code cosmetics
typo
better way to suppress warnings