make sure that last_updated is set to date type rather than datetime