mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2024-11-05 12:27:53 +00:00
Merge pull request #3 from worpet/master
Fixed local timezone was incorrectly being applied to IAM and Last-Modified dates.
This commit is contained in:
commit
26187b954e
@ -752,7 +752,7 @@ time_t cvtIAMExpireStringToTime(const char* s)
|
||||
}
|
||||
memset(&tm, 0, sizeof(struct tm));
|
||||
strptime(s, "%Y-%m-%dT%H:%M:%S", &tm);
|
||||
return mktime(&tm); // GMT
|
||||
return timegm(&tm); // GMT
|
||||
}
|
||||
|
||||
time_t get_lastmodified(const char* s)
|
||||
@ -763,7 +763,7 @@ time_t get_lastmodified(const char* s)
|
||||
}
|
||||
memset(&tm, 0, sizeof(struct tm));
|
||||
strptime(s, "%a, %d %b %Y %H:%M:%S %Z", &tm);
|
||||
return mktime(&tm); // GMT
|
||||
return timegm(&tm); // GMT
|
||||
}
|
||||
|
||||
time_t get_lastmodified(headers_t& meta)
|
||||
|
Loading…
Reference in New Issue
Block a user