I have found this question that seems dead so i will add more context.
i am using the python google-cloud-storage sdk to generate signed urls using blob.generated_signed_url()
.
Here is the full method i use :
blob.generate_signed_url(expiration=datetime.now() + timedelta(minutes=1), version="v4")
I live in France so my Timezone is +1h from datetime.now().
The generated URL looks fine, i see the part of the expiration and the date : X-Goog-Date=20230318T191451Z&X-Goog-Expires=3659
But now it's 20min after this delay and the doc is still available.
Note : I have also tried using timedelta(hours=1, minutes=1)
to simulate the France Timezone but it is still available also after 2mins of waiting.
What I am doing wrong ?