Context: Initialize ISO8601::weekstart

This commit is contained in:
Paul Beckingham 2015-09-26 12:40:56 -04:00
parent 12aeecc73f
commit 541e9eec30
3 changed files with 8 additions and 0 deletions

View file

@ -37,6 +37,7 @@
#include <FS.h>
#include <Eval.h>
#include <Variant.h>
#include <ISO8601.h>
#include <text.h>
#include <util.h>
#include <main.h>
@ -634,6 +635,8 @@ void Context::staticInitialization ()
TDB2::debug_mode = config.getBoolean ("debug");
ISO8601d::weekstart = config.get ("weekstart");
for (auto& rc : config)
{
if (rc.first.substr (0, 4) == "uda." &&

View file

@ -30,6 +30,7 @@
#include <Lexer.h>
#include <ISO8601.h>
#include <Date.h>
#include <i18n.h>
#define DAY 86400
#define HOUR 3600
@ -105,6 +106,8 @@ static struct
#define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0]))
std::string ISO8601d::weekstart = STRING_DATE_SUNDAY;
////////////////////////////////////////////////////////////////////////////////
ISO8601d::ISO8601d ()
{

View file

@ -34,6 +34,8 @@
class ISO8601d
{
public:
static std::string weekstart;
ISO8601d ();
~ISO8601d ();
ISO8601d (const ISO8601d&); // Unimplemented