diff options
Diffstat (limited to 'plugins/NewStory/src')
-rw-r--r-- | plugins/NewStory/src/templates.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/NewStory/src/templates.cpp b/plugins/NewStory/src/templates.cpp index 29bab54ccf..0ca537a60c 100644 --- a/plugins/NewStory/src/templates.cpp +++ b/plugins/NewStory/src/templates.cpp @@ -238,8 +238,7 @@ void vfEvent(int, TemplateVars *vars, MCONTACT, ItemData *item) vars->SetVar('w', TranslateW(weekDays[st.wDayOfWeek]), false); // %p: AM/PM symbol - GetTimeFormatW(iLocale, 0, &st, L"tt", buf, _countof(buf)); - vars->SetVar('p', buf, true); + vars->SetVar('p', (st.wHour > 11) ? L"PM" : L"AM", true); // %O: Name of month, translatable vars->SetVar('O', TranslateW(months[st.wMonth-1]), false); |