Enforce Gregorian calendar

There are some countries which don't use Gregorian as their default calendar i.e. Thailand which use Buddhist calendar.

This fix will prevent wrong year format.