summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/annotate.cc2
-rw-r--r--src/times.cc2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/annotate.cc b/src/annotate.cc
index c5ccdf07..27261f57 100644
--- a/src/annotate.cc
+++ b/src/annotate.cc
@@ -206,7 +206,7 @@ void annotation_t::print(std::ostream& out, bool keep_base,
if (date &&
(! no_computed_annotations || ! has_flags(ANNOTATION_DATE_CALCULATED)))
- out << " [" << format_date(*date, FMT_PRINTED) << ']';
+ out << " [" << format_date(*date, FMT_WRITTEN) << ']';
if (tag &&
(! no_computed_annotations || ! has_flags(ANNOTATION_TAG_CALCULATED)))
diff --git a/src/times.cc b/src/times.cc
index 640e5019..ffd62428 100644
--- a/src/times.cc
+++ b/src/times.cc
@@ -1696,11 +1696,13 @@ namespace {
void set_datetime_format(const char * format)
{
+ written_datetime_io->set_format(format);
printed_datetime_io->set_format(format);
}
void set_date_format(const char * format)
{
+ written_date_io->set_format(format);
printed_date_io->set_format(format);
}