From f5a2cb310059255c12d1a30ed67e2ad2f8f7c888 Mon Sep 17 00:00:00 2001 From: Ivan Dmitrievich Yartsev Date: Mon, 23 Mar 2026 16:40:49 +0600 Subject: [PATCH] Fixed Timezone page utc on zone --- source/ubinstall-gtk-region.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/ubinstall-gtk-region.c b/source/ubinstall-gtk-region.c index a6080d3..464d731 100644 --- a/source/ubinstall-gtk-region.c +++ b/source/ubinstall-gtk-region.c @@ -31,7 +31,13 @@ void on_region_changed(GtkComboBox *self, main_window *widgets){ if (!yon_char_is_empty(active)){ config_str parsed = yon_timezone_get_zones_from_region(active,&size); for (size_t i=0;iZoneCombo),parsed[i],_(parsed[i])); + char *timezone = yon_char_unite(active,"/",parsed[i],NULL); + char *utc = yon_timezone_get_utc(timezone); + if (utc&&strlen(utc)>3) utc[3]='\0'; + char *zone_label = yon_char_unite("(UTC ",utc,") ",_(parsed[i]),NULL); + gtk_combo_box_text_append(GTK_COMBO_BOX_TEXT(widgets->ZoneCombo),parsed[i],zone_label); + free(zone_label); + free(timezone); } if (size) yon_char_parsed_free(parsed,size); gtk_combo_box_set_active(GTK_COMBO_BOX(widgets->ZoneCombo),0);