fixed generated datetime