Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/lib/libalpm/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libalpm/util.c')
-rw-r--r--lib/libalpm/util.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/libalpm/util.c b/lib/libalpm/util.c
index ce9083d5..ce3bc85b 100644
--- a/lib/libalpm/util.c
+++ b/lib/libalpm/util.c
@@ -357,10 +357,11 @@ int _alpm_logaction(unsigned short usesyslog, FILE *f, const char *str)
t = time(NULL);
tm = localtime(&t);
- fprintf(f, "[%02d/%02d/%02d %02d:%02d] %s\n",
- tm->tm_mon+1, tm->tm_mday, tm->tm_year-100,
- tm->tm_hour, tm->tm_min,
- str);
+ /* Use ISO-8601 date format */
+ fprintf(f, "[%04d-%02d-%02d %02d:%02d] %s\n",
+ tm->tm_year+1900, tm->tm_mon+1, tm->tm_mday,
+ tm->tm_hour, tm->tm_min, str);
+
fflush(f);
}