From 904d41605c563451be2591d5c57cf6b3bd8db19d Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND Date: Mon, 5 Jul 2021 15:44:42 +0200 Subject: [PATCH] year 4 digits --- src/ParamOutputImpl/Plot/InstantPlot/InstantPlot.cc | 2 +- src/ParamOutputImpl/Plot/Scatter/XYPlot.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ParamOutputImpl/Plot/InstantPlot/InstantPlot.cc b/src/ParamOutputImpl/Plot/InstantPlot/InstantPlot.cc index c8f4a69..a30691e 100644 --- a/src/ParamOutputImpl/Plot/InstantPlot/InstantPlot.cc +++ b/src/ParamOutputImpl/Plot/InstantPlot/InstantPlot.cc @@ -188,7 +188,7 @@ void InstantPlot::preparePlotArea(double startTime, double stopTime, int interva _panel->_updateTitleOnNextInterval = true; // Set start date and end date. - std::string lTimeFormat("%H:%M:%S %d/%m/%y"); + std::string lTimeFormat("%H:%M:%S %d/%m/%Y"); long int lStartTime = static_cast(_time); tm * lStartTimeTm = gmtime(&lStartTime); diff --git a/src/ParamOutputImpl/Plot/Scatter/XYPlot.cc b/src/ParamOutputImpl/Plot/Scatter/XYPlot.cc index 9a6cd2b..15210e7 100644 --- a/src/ParamOutputImpl/Plot/Scatter/XYPlot.cc +++ b/src/ParamOutputImpl/Plot/Scatter/XYPlot.cc @@ -57,7 +57,7 @@ void XYPlot::preparePlotArea(double startTime, double stopTime, int intervalInde //Title must be updated during the next interval plot _panel->_updateTitleOnNextInterval = true; // Set start date and end date. - std::string lTimeFormat("%H:%M %d/%m/%y"); + std::string lTimeFormat("%H:%M %d/%m/%Y"); long int lStartTime = static_cast(startTime); tm * lStartTimeTm = gmtime(&lStartTime); -- libgit2 0.21.2