Fixed datetime editor bug, where months were offset by 1.