qml: format dates with Gregorian month names

bitcoin-core/gui-qml: PR #1123

1 minor finding

Findings

Link

[minor] · Calendar header drops the locale's script

Rebuilding the header locale through Locale.name can change month names to the default script for nondefault-script locales such as Serbian Latin; the exact platform-specific output has not been observed in a running UI.

Location: qml/controls/ActivityCalendar.qml:306 (head).

Details and suggested fix

Opening Activity's custom date-range picker now formats the month header with Qt.locale(Qt.locale().name). QML Locale.name contains only language and territory, so sr_Latn_RS becomes sr_RS and loses the Latin-script selection. Reparsing chooses Qt's default script for that language and region, potentially producing Cyrillic month names while the weekday header still uses the original Qt.locale(). The base binding preserved the script, as does the new C++ GregorianLocale helper and its Serbian Latin test. Format the header through a C++ invokable using QmlUtil::GregorianLocale() so removing system-calendar overrides also preserves language, script, and territory.


Coverage details