I don’t know what the cause of your problem is, but here is a custom date pipe using date-fns that works great for me: