Cloud: fix build failure under Linux caused by 275f302e0d26

This commit is contained in:
wmayer
2020-03-16 15:22:26 +01:00
parent 0a905d1f13
commit 595a0ae4d4

View File

@@ -291,6 +291,7 @@ struct Cloud::AmzData *Cloud::ComputeDigestAmzS3v2(char *operation, char *data_t
time(&rawtime);
tm = localtime(&rawtime);
#else
struct timeval tv;
setenv("TZ","GMT",1);
gettimeofday(&tv, NULL);
tm = localtime(&tv.tv_sec);