Fix a bug that not equal operation (!=) with Time and String

String value is casted as integer and compared. It should also support
"yyyy-mm-dd HH:MM:SS" format.