[Toolkit] Fixing bugs with the datetime widget