X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/4f1e1a09ce4daed860e35d359ce2fceccb0764e8..1546d4af2ed1219a41ef4170bf188f2ab91442e6:/icuSources/i18n/dtitvinf.cpp diff --git a/icuSources/i18n/dtitvinf.cpp b/icuSources/i18n/dtitvinf.cpp index c863a683..d00668be 100644 --- a/icuSources/i18n/dtitvinf.cpp +++ b/icuSources/i18n/dtitvinf.cpp @@ -326,7 +326,9 @@ struct DateIntervalInfo::DateIntervalSink : public ResourceSink { char c0; if ((c0 = patternLetter[0]) != 0 && patternLetter[1] == 0) { // Check that the pattern letter is accepted - if (c0 == 'y') { + if (c0 == 'G') { + return UCAL_ERA; + } else if (c0 == 'y') { return UCAL_YEAR; } else if (c0 == 'M') { return UCAL_MONTH;