Fix analyzer warnings about format specifiers.
Delete unused variable gregorian
Convert to ARC.
Convert to ARC. In previous commit I forgot to stage these files.