• É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
..
plugins Loading commit data...
CompositeStorage.cxx Loading commit data...
CompositeStorage.hxx Loading commit data...
Configured.cxx Loading commit data...
Configured.hxx Loading commit data...
FileInfo.hxx Loading commit data...
MemoryDirectoryReader.cxx Loading commit data...
MemoryDirectoryReader.hxx Loading commit data...
Registry.cxx Loading commit data...
Registry.hxx Loading commit data...
StorageInterface.cxx Loading commit data...
StorageInterface.hxx Loading commit data...
StoragePlugin.hxx Loading commit data...
StorageState.cxx Loading commit data...
StorageState.hxx Loading commit data...
meson.build Loading commit data...