Fixed a syntax error in updateDate