fixed datetime bug in helper