Fix a bug that compare operations (<, <=, >, >=) with Time and String

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