Can Language Models Handle a Non-Gregorian Calendar? The Case of the Japanese wareki