summaryrefslogtreecommitdiff
path: root/format.h
diff options
context:
space:
mode:
Diffstat (limited to 'format.h')
-rw-r--r--format.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/format.h b/format.h
index df5dc49a..b507fa20 100644
--- a/format.h
+++ b/format.h
@@ -51,6 +51,7 @@ struct element_t
struct format_t
{
+ std::string format_string;
element_t * elements;
static std::string date_format;
@@ -69,6 +70,7 @@ struct format_t
if (elements)
delete elements;
elements = parse_elements(_format);
+ format_string = _format;
}
static element_t * parse_elements(const std::string& fmt);