Fix attribute type as DATETIME