Context: Initialize ISO8601::weekstart
This commit is contained in:
@@ -37,6 +37,7 @@
|
|||||||
#include <FS.h>
|
#include <FS.h>
|
||||||
#include <Eval.h>
|
#include <Eval.h>
|
||||||
#include <Variant.h>
|
#include <Variant.h>
|
||||||
|
#include <ISO8601.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <util.h>
|
#include <util.h>
|
||||||
#include <main.h>
|
#include <main.h>
|
||||||
@@ -634,6 +635,8 @@ void Context::staticInitialization ()
|
|||||||
|
|
||||||
TDB2::debug_mode = config.getBoolean ("debug");
|
TDB2::debug_mode = config.getBoolean ("debug");
|
||||||
|
|
||||||
|
ISO8601d::weekstart = config.get ("weekstart");
|
||||||
|
|
||||||
for (auto& rc : config)
|
for (auto& rc : config)
|
||||||
{
|
{
|
||||||
if (rc.first.substr (0, 4) == "uda." &&
|
if (rc.first.substr (0, 4) == "uda." &&
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
#include <Lexer.h>
|
#include <Lexer.h>
|
||||||
#include <ISO8601.h>
|
#include <ISO8601.h>
|
||||||
#include <Date.h>
|
#include <Date.h>
|
||||||
|
#include <i18n.h>
|
||||||
|
|
||||||
#define DAY 86400
|
#define DAY 86400
|
||||||
#define HOUR 3600
|
#define HOUR 3600
|
||||||
@@ -105,6 +106,8 @@ static struct
|
|||||||
|
|
||||||
#define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0]))
|
#define NUM_DURATIONS (sizeof (durations) / sizeof (durations[0]))
|
||||||
|
|
||||||
|
std::string ISO8601d::weekstart = STRING_DATE_SUNDAY;
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
ISO8601d::ISO8601d ()
|
ISO8601d::ISO8601d ()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -34,6 +34,8 @@
|
|||||||
class ISO8601d
|
class ISO8601d
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
static std::string weekstart;
|
||||||
|
|
||||||
ISO8601d ();
|
ISO8601d ();
|
||||||
~ISO8601d ();
|
~ISO8601d ();
|
||||||
ISO8601d (const ISO8601d&); // Unimplemented
|
ISO8601d (const ISO8601d&); // Unimplemented
|
||||||
|
|||||||
Reference in New Issue
Block a user