prevent ugly traceback when month or day are zero
postgis2 fix and wfos