summaryrefslogtreecommitdiff
path: root/sal/osl/all/log.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sal/osl/all/log.cxx')
-rw-r--r--sal/osl/all/log.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/sal/osl/all/log.cxx b/sal/osl/all/log.cxx
index ae89b0802e92..94aef6b17d24 100644
--- a/sal/osl/all/log.cxx
+++ b/sal/osl/all/log.cxx
@@ -218,8 +218,10 @@ void maybeOutputTimestamp(std::ostringstream &s) {
tm.tm_min = dateTime.Minutes;
tm.tm_hour = dateTime.Hours;
tm.tm_mday = dateTime.Day;
+ tm.tm_wday = dateTime.DayOfWeek;
tm.tm_mon = dateTime.Month - 1;
tm.tm_year = dateTime.Year - 1900;
+ tm.tm_yday = 0;
strftime(ts, sizeof(ts), "%Y-%m-%d:%H:%M:%S", &tm);
char milliSecs[11];
snprintf(milliSecs, sizeof(milliSecs), "%03u",