1
0
mirror of https://github.com/libretro/RetroArch synced 2024-07-05 09:48:42 +00:00

Restore default time mode, replace non-sensical time date formats with more commonly used ones

This commit is contained in:
=Christian Murphy 2018-10-05 23:11:38 +01:00
parent 940a03f552
commit 017d1b710e
5 changed files with 9 additions and 9 deletions

View File

@ -697,7 +697,7 @@ static const unsigned menu_thumbnails_default = 3;
static const unsigned menu_left_thumbnails_default = 0;
static const unsigned menu_timedate_style = 4;
static const unsigned menu_timedate_style = 5;
static const bool xmb_vertical_thumbnails = false;

View File

@ -2886,8 +2886,8 @@ MSG_HASH(
"YYYY-MM-DD HH:MM"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_YMD,
"YY-MM-DD"
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_MDYYYY,
"MM-DD-YYYY HH:MM"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_HMS,
@ -2907,7 +2907,7 @@ MSG_HASH(
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_AM_PM,
"HH:MM (AM/PM)"
"HH:MM:SS (AM/PM)"
)
MSG_HASH(
MENU_ENUM_LABEL_VALUE_TITLE_COLOR,

View File

@ -358,9 +358,9 @@ void menu_display_timedate(menu_display_ctx_datetime_t *datetime)
strftime(datetime->s, datetime->len,
"%Y-%m-%d %H:%M", localtime(&time_));
break;
case 2: /* Date */
case 2: /* MM-DD-YYYY HH:MM */
strftime(datetime->s, datetime->len,
"%y-%m-%d", localtime(&time_));
"%m-%d-%Y %H:%M", localtime(&time_));
break;
case 3: /* Time */
strftime(datetime->s, datetime->len,
@ -384,7 +384,7 @@ void menu_display_timedate(menu_display_ctx_datetime_t *datetime)
"%r", localtime(&time_));
#else
strftime(datetime->s, datetime->len,
"%I:%M %p", localtime(&time_));
"%I:%M:%S %p", localtime(&time_));
#endif
}
}

View File

@ -525,7 +525,7 @@ static void setting_get_string_representation_uint_menu_timedate_style(
case 2:
strlcpy(s,
msg_hash_to_str(
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_YMD), len);
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_MDYYYY), len);
break;
case 3:
strlcpy(s,

View File

@ -2129,7 +2129,7 @@ enum msg_hash_enums
MSG_CHEEVOS_HARDCORE_MODE_DISABLED,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_YMD_HMS,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_YMD_HM,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_YMD,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_MDYYYY,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_HMS,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_HM,
MENU_ENUM_LABEL_VALUE_TIMEDATE_STYLE_DM_HM,