Localization improvements
Posted: Sat Jan 18, 2025 6:28 am
Regarding the issue of the date being off by one year near the end of the year
Hello. This is Wakui from the Development Group 1.
This time, I would like to talk about the issue of the date being off by one year near the end of the year.
environment
Xcode version: 15.4
Symptoms
Only the display at the end of the year was san marino email address off by one year. So I thought "HAHA! No way!" and tried to display the whole year from now in print.
Around the end of 2024
(Omitted)
2024 - 12 - 27
2024 - 12 - 28
2025 - 12 - 29 ← It's 2025 from the 29th ... 2025 - 12 - 30 2025 - 12 - 31 2025 - 01 - 01
(omission)
It was definitely off. But it seemed to be displaying correctly for other periods. So, was it just the 29th to 31st of December every year that was wrong? I wondered, and checked the end of 2025 and 2026 as well.
Around the end of 2025
(Omitted)
2025 - 12 - 27
2026 - 12 - 28 ← It's 2026 from the 28th ... 2026 - 12 - 29 2026 - 12 - 30 2026 - 12 - 31 2026 - 01 - 01
(omission)
Around the end of 2026
(Omitted)
2027 - 12 - 27 ← It's 2027 since the 27th ... 2027 - 12 - 28 2027 - 12 - 29 2027 - 12 - 30 2027 - 12 - 31 2027 - 01 - 01
(omission)
Apparently it's not a specific period that's off by a year, but rather the period that starts to shift by a year is getting a day earlier?
"I see, I totally get it. It's an Apple bug!"
Hello. This is Wakui from the Development Group 1.
This time, I would like to talk about the issue of the date being off by one year near the end of the year.
environment
Xcode version: 15.4
Symptoms
Only the display at the end of the year was san marino email address off by one year. So I thought "HAHA! No way!" and tried to display the whole year from now in print.
Around the end of 2024
(Omitted)
2024 - 12 - 27
2024 - 12 - 28
2025 - 12 - 29 ← It's 2025 from the 29th ... 2025 - 12 - 30 2025 - 12 - 31 2025 - 01 - 01
(omission)
It was definitely off. But it seemed to be displaying correctly for other periods. So, was it just the 29th to 31st of December every year that was wrong? I wondered, and checked the end of 2025 and 2026 as well.
Around the end of 2025
(Omitted)
2025 - 12 - 27
2026 - 12 - 28 ← It's 2026 from the 28th ... 2026 - 12 - 29 2026 - 12 - 30 2026 - 12 - 31 2026 - 01 - 01
(omission)
Around the end of 2026
(Omitted)
2027 - 12 - 27 ← It's 2027 since the 27th ... 2027 - 12 - 28 2027 - 12 - 29 2027 - 12 - 30 2027 - 12 - 31 2027 - 01 - 01
(omission)
Apparently it's not a specific period that's off by a year, but rather the period that starts to shift by a year is getting a day earlier?
"I see, I totally get it. It's an Apple bug!"