Open yokoyama-flogics opened 3 years ago
We have this same issue.
When viewing content through browser it shows the correct timestamp in UTC.
https://mybucket / directory /
Last Modified Size Key
---------------------------------------------------------------------------------------------
../
2024-06-04T07:04:22.570Z 64.8 kB somefile.png
After downloading the file with s3cmd get
Timezone is set to EEST
timedatectl status
...
Time zone: Europe/Helsinki (EEST, +0300)
But ls
command displays the UTC as localtime
ls -l somefile.png
... 2024-06-05 07:04 somefile.png
Also stat shows the UTC modification time as localtime
stat --format="%y" somefile.png
2024-06-05 07:04:22.000000000 +0300
This is wrong, and it should display
2024-06-05 10:04:22.000000000 +0300
The results are same no matter if I use --preserver
or --no-preserve
.
Hello,
Thank you for the great software!
I have a question. My s3cmd version is 2.1.0 installed by HomeBrew on macOS 10.15.7. The underlying python is version 3.8.10.
I have an S3 bucket in US East (N. Virginia) us-east-1 region, and I have a file which has the following time stamp:
June 13, 2021, 05:55:02 (UTC+09:00)
The above was confirmed on the AWS console.
However, when I ran 's3cmd ls' on the same file, I saw the following. My PC's timezone is JST (UTC+9:00) as same as the above.
It looks s3cmd showed the date and time in UTC+0 (or simply GMT). Is this expected? Does s3cmd respect timezone by someway?
More confusingly, when I ran 's3cmd get' with '-p' option, the downloaded file had an incorrect timestamp as following.
To my understanding, it isn't preserving the correct time stamp. Shouldn't it be '6 13 05:55'?
Is my understanding incorrect??
Regards,
Atsushi