Use date_create_from_format rather then strtotime

Fixes that values is not saved if you are using different datetime formats.