make DatetimeWidgetConverter more robust