Fix editing dates on non standard locale