mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-16 18:25:11 -06:00
Date format using strftime under windows.
strftime under windows does not support the %e or %P flags so change them to %d and %p respectively.
This commit is contained in:
parent
e81494756e
commit
fab69c29a8
@ -1646,12 +1646,10 @@ static gchar *generate_statusbar_lastmodified_message()
|
||||
the status bar after opening a file: The date and time of
|
||||
last modification. The string is a format string using
|
||||
boost::date_time's format flags, see the boost docs for an
|
||||
explanation of the modifiers. First string is for a locale
|
||||
that has the a.m. or p.m. string in its locale, second
|
||||
string is for locales that do not have that string. */
|
||||
explanation of the modifiers. */
|
||||
char *time_string =
|
||||
gnc_print_time64(statbuf.st_mtime,
|
||||
_("Last modified on %a, %b %e, %Y at %I:%M%P"));
|
||||
_("Last modified on %a, %b %d, %Y at %I:%M %p"));
|
||||
//g_warning("got time %ld, str=%s\n", mtime, time_string);
|
||||
/* Translators: This message appears in the status bar after opening the file. */
|
||||
message = g_strdup_printf(_("File %s opened. %s"),
|
||||
|
@ -231,7 +231,7 @@ gnc_timegm (struct tm* time)
|
||||
char*
|
||||
gnc_ctime (const time64 *secs)
|
||||
{
|
||||
return gnc_print_time64(*secs, "%a %b %e %H:%M:%S %Y");
|
||||
return gnc_print_time64(*secs, "%a %b %d %H:%M:%S %Y");
|
||||
}
|
||||
|
||||
time64
|
||||
|
Loading…
Reference in New Issue
Block a user