Fix the 'toGregorian' method to return a real 'date' object