Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit be179bf

Browse files
[[ RefactorSyntax ]] Fixes internet and system dates format errors
1 parent 0e4ec12 commit be179bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

engine/src/date.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ bool MCDateTimeInitialize()
112112
g_basic_locale->abbrev_month_names[11]= MCSTR("Dec");
113113

114114
g_basic_locale->date_formats[0] = MCSTR("^%#m/%#d/%#y");
115-
g_basic_locale->date_formats[1] = MCSTR("%a, %b %#d %#Y");
116-
g_basic_locale->date_formats[2] = MCSTR("%A, %B %#d %#Y");
115+
g_basic_locale->date_formats[1] = MCSTR("%a, %b %#d, %#Y");
116+
g_basic_locale->date_formats[2] = MCSTR("%A, %B %#d, %#Y");
117117

118118
g_basic_locale->time_formats[0] = MCSTR("!%#I:%M %p");
119119
g_basic_locale->time_formats[1] = MCSTR("!%#I:%M:%S %p");
@@ -586,7 +586,7 @@ static void datetime_format(const MCDateTimeLocale *p_locale, MCStringRef p_form
586586
case 'M': /* UNCHECKED */ MCStringAppendFormat(t_buffer, t_pad ? "%02d" : "%d", t_minute); break; // minutes
587587
case 'S': /* UNCHECKED */ MCStringAppendFormat(t_buffer, t_pad ? "%02d" : "%d", t_second); break; // seconds
588588
case 'p': /* UNCHECKED */ MCStringAppend(t_buffer, t_hour < 12 ? p_locale -> time_morning_suffix : p_locale -> time_evening_suffix); break; // 12-hour identifier
589-
case 'z': /* UNCHECKED */ MCStringAppendFormat(t_buffer, "%+04d", (t_bias / 60) * 100 + t_bias % 60); break; // timezone
589+
case 'z': /* UNCHECKED */ MCStringAppendFormat(t_buffer, "%+05d", (t_bias / 60) * 100 + t_bias % 60); break; // timezone
590590
case '%': /* UNCHECKED */ MCStringAppendChar(t_buffer, '%'); break;
591591
}
592592
}

0 commit comments

Comments
 (0)