summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2020-04-28 21:25:13 +0300
committerGeorge Hazan <ghazan@miranda.im>2020-04-28 21:25:13 +0300
commitaf9a1aaa8fc8582bd0d2635d3750894ade49b73a (patch)
treeaee773e154cc68ee59c0fac95b8143468f60db71 /plugins
parentd3ec60ee659f74de6db2346d325681c81678f2a1 (diff)
+ fix for %p
Diffstat (limited to 'plugins')
-rw-r--r--plugins/NewStory/src/templates.cpp3
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);