mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-16 15:14:17 +00:00
Merge branch 'master' into 'master'
calendar: Use the new "%OB" format in strftime() Closes #9 See merge request GNOME/gtk!10
This commit is contained in:
commit
d564e397e2
@ -703,7 +703,8 @@ gtk_calendar_init (GtkCalendar *calendar)
|
||||
{
|
||||
#ifndef G_OS_WIN32
|
||||
tmp_time=i*2764800;
|
||||
strftime ( buffer, sizeof (buffer), "%B", gmtime (&tmp_time));
|
||||
/* Note: "%OB" works only in glibc >= 2.27 and in BSD and OS X. */
|
||||
strftime (buffer, sizeof (buffer), "%OB", gmtime (&tmp_time));
|
||||
default_monthname[i] = g_locale_to_utf8 (buffer, -1, NULL, NULL, NULL);
|
||||
#else
|
||||
if (!GetLocaleInfoW (GetThreadLocale (), LOCALE_SMONTHNAME1 + i,
|
||||
|
Loading…
Reference in New Issue
Block a user