Change deprecated methods of the gregorian calendar