Perspective - SQL time field to date cast problem

Hello guys, I have a problem (Ignition 8.1.38) in Perspective with casting a time field retrieved from MySQL into a date to display in a datetime picker field.
The field in MySQL has value of 08:00:00 AM, I created a custom property and binded a query to get data from SQL, then I binded the field with an expression like in the screenshot.
The preview shows the right result but when saving, another value is shown I don't know why.
Thanks