Modify method makeSaveItemSql to use real datetime.