Fixed wrong datetime usage

Change-Id: Iffa000cb2ca68d6ce59c983294a9bad1f93fd48b