'Get time based on AWS region [duplicate]
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.
Solution 1:[1]
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.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Daniel Seichter |
