mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
* src/app-utils/app-utils/scm: export new dateformat option symbols
* src/app-utils/option-util.[ch]: create dateformat option utility functions * src/app-utils/options.scm: create a dateformat option * src/engine/date.[ch]: create APIs to handle date-format types. - conversions of date-format to/from strings - move the month format enum to here - conversion of month format to/from strings * src/gnome/top-level.c: move date-format string conversion from here * src/gnome-utils/dialog-options.c: implement a date-format options that uses the gnc-date-format widget. * src/gnome-utils/gnc-date-format.h: remove month format (to date.h) Initial fix for #99574 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8496 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
@@ -577,34 +577,11 @@ gnc_configure_date_format (void)
|
||||
|
||||
DateFormat df;
|
||||
|
||||
if( safe_strcmp(format_code, "us") == 0)
|
||||
{
|
||||
df = DATE_FORMAT_US;
|
||||
}
|
||||
|
||||
else if( safe_strcmp(format_code, "uk") == 0)
|
||||
{
|
||||
df = DATE_FORMAT_UK;
|
||||
}
|
||||
|
||||
else if( safe_strcmp(format_code, "ce") == 0)
|
||||
{
|
||||
df = DATE_FORMAT_CE;
|
||||
}
|
||||
|
||||
else if( safe_strcmp(format_code, "iso") == 0)
|
||||
{
|
||||
df = DATE_FORMAT_ISO;
|
||||
}
|
||||
|
||||
else if( safe_strcmp(format_code, "locale") == 0)
|
||||
{
|
||||
df = DATE_FORMAT_LOCALE;
|
||||
}
|
||||
|
||||
else
|
||||
if (gnc_date_string_to_dateformat(format_code, &df))
|
||||
{
|
||||
PERR("Incorrect date format code");
|
||||
if (format_code != NULL)
|
||||
free(format_code);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user