Get time based on AWS region

3.7k views Asked by At

Given the aws-region like us-east-2, is there a way get current time of that region ?

Trying to write a job which triggers few actions if time is in between 12-1am on server. Current I have only AWS region where that server is running. Note that I cannot have this job running inside server, instead it needs to be called from separate service.

1

There are 1 answers

2
Daniel Seichter On

AWS uses UTC for all regions. And I hope, they will never change that.

If you want to trigger a service for your specific timezone, create within that specific region the trigger (e.g. EventBridge) and adjust the time. So you can define in us-east-2 another time to trigger that event than e.g. in eu-central-1.