diff options
Diffstat (limited to 'plugins/Variables/src')
-rw-r--r-- | plugins/Variables/src/parse_miranda.cpp | 9 | ||||
-rw-r--r-- | plugins/Variables/src/variables.h | 1 |
2 files changed, 2 insertions, 8 deletions
diff --git a/plugins/Variables/src/parse_miranda.cpp b/plugins/Variables/src/parse_miranda.cpp index 2710effbf0..bd07c2c23d 100644 --- a/plugins/Variables/src/parse_miranda.cpp +++ b/plugins/Variables/src/parse_miranda.cpp @@ -712,14 +712,7 @@ static TCHAR *parseMirDateString(ARGUMENTSINFO *ai) ai->flags |= AIF_DONTPARSE;
TCHAR ret[128];
- DBTIMETOSTRINGT tst = { 0 };
- tst.szFormat = _T("d s");
- tst.szDest = ret;
- tst.cbDest = SIZEOF(ret);
- if (CallService(MS_DB_TIME_TIMESTAMPTOSTRINGT, (WPARAM)time(NULL), (LPARAM)&tst))
- return NULL;
-
- return mir_tstrdup(ret);
+ return mir_tstrdup(TimeZone_ToStringT(time(NULL), _T("d s"), ret, SIZEOF(ret)));
}
static TCHAR *parseMirandaCoreVar(ARGUMENTSINFO *ai)
diff --git a/plugins/Variables/src/variables.h b/plugins/Variables/src/variables.h index 4d65579e74..49b4bbba01 100644 --- a/plugins/Variables/src/variables.h +++ b/plugins/Variables/src/variables.h @@ -44,6 +44,7 @@ #include <m_clc.h>
#include <m_string.h>
#include <m_metacontacts.h>
+#include <m_timezones.h>
#include <m_variables.h>
|