summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/server.h
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2007-11-09 06:18:07 +0100
committerDan McGee <dan@archlinux.org>2007-11-09 06:18:07 +0100
commite6673544b2afc9e463cdbf4e7d0bb0b5d7b6b80d (patch)
treebf3982d47f33e872a229a8b31e2528dfeea802a8 /lib/libalpm/server.h
parent5b4b4df4c9c2cfb3aa2e4b40c2c49ea8bf10ce37 (diff)
downloadpacman-e6673544b2afc9e463cdbf4e7d0bb0b5d7b6b80d.tar.gz
pacman-e6673544b2afc9e463cdbf4e7d0bb0b5d7b6b80d.tar.xz
Fix some issues with localized dates/epoch usage
Commit 47622eef4dd8fd86a0aa0e3ebdb7b33f7c9d6804 introduced localized times in the metadata by way of storing the UNIX epoch value instead of a hard coded date string. However, it missed a few things: * If we weren't in the C/POSIX/en_US locale, the date parsing would fail as it tried to use the abbreviations of the locale being used. Fix this by switching the LC_TIME value before we parse a date. * We used ctime to print the date value, which is always the C locale string. Instead, use strftime to print a localized date string. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/server.h')
0 files changed, 0 insertions, 0 deletions