Hi, > doxygen: please make the output of reproducible
< danielsh` > lamby, btw, shouldn't _currentDateTime() be declared static? Updated patch attached. Regards, -- ,''`. : :' : Chris Lamb `. `'` la...@debian.org / chris-lamb.co.uk `-
diff --git a/src/util.cpp b/src/util.cpp index 0d45758..287b2ab 100644 --- a/src/util.cpp +++ b/src/util.cpp @@ -2558,7 +2558,7 @@ QCString fileToString(const char *name,bool filter,bool isSourceCode) return ""; } -QCString dateToString(bool includeTime) +static QDateTime _currentDateTime() { QDateTime current = QDateTime::currentDateTime(); QCString sourceDateEpoch = portable_getenv("SOURCE_DATE_EPOCH"); @@ -2590,6 +2590,12 @@ QCString dateToString(bool includeTime) current.setTimeUtc_t((ulong)epoch); // TODO: add support for 64bit epoch value } } + return current; +} + +QCString dateToString(bool includeTime) +{ + QDateTime current = _currentDateTime(); return theTranslator->trDateTime(current.date().year(), current.date().month(), current.date().day(), @@ -2602,9 +2608,8 @@ QCString dateToString(bool includeTime) QCString yearToString() { - const QDate &d=QDate::currentDate(); QCString result; - result.sprintf("%d", d.year()); + result.sprintf("%d", _currentDateTime().date().year()); return result; }