Fix exception in date time widget
Merge pull request #4208 from majna/3.0-datetime

Fix exception in date time widget