• Érico Rolim's avatar
    storage/plugins/CurlStorage: don't use glibc extension in · c95e3dc0
    Érico Rolim authored
    ParseTimePoint.
    
    %Z is a glibc extension to strptime, and is a no-op there, due to the
    mapping between timezone names and their definition (especially when the
    name comes from a different machine) being ambiguous / impossible.  Time
    in HTTP headers is guaranteed to be UTC.
    
    Passing an unknown format to strptime() implementations that don't
    support it will generally cause them to return NULL, which will lead to
    ParseTimePoint throwing an exception and ParseTimeStamp using an
    unnecessary fallback.
    
    Since the timezone name goes at the end of the string, we don't need to
    use %Z to skip it (could be an issue in a different time stamp format),
    so simply removing %Z works best.
    c95e3dc0
Name
Last commit
Last update
.github Loading commit data...
android Loading commit data...
build Loading commit data...
doc Loading commit data...
python/build Loading commit data...
src Loading commit data...
subprojects Loading commit data...
systemd Loading commit data...
test Loading commit data...
win32 Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
NEWS Loading commit data...
README.md Loading commit data...
meson.build Loading commit data...
meson_options.txt Loading commit data...
mpd.svg Loading commit data...
valgrind.suppressions Loading commit data...