Just being doing an AWS EC2 volume enlargement and the output of StartTime is in UTC
1 | aws --profile gap ec2 describe-volumes-modifications --volume- id vol-XXXXXXXXXXXXXXXXXXXXX |
Output:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | { "VolumesModifications" : [ { "VolumeId" : "vol-XXXXXXXXXXXXXXXXXXXXX" , "ModificationState" : "optimizing" , "TargetSize" : 200, "TargetIops" : 600, "TargetVolumeType" : "gp2" , "OriginalSize" : 80, "OriginalIops" : 240, "OriginalVolumeType" : "gp2" , "Progress" : 52, "StartTime" : "2021-01-01T01:06:48+00:00" } ] } |
What is the local time for the "StartTime" value in the output of the aws cli command
GNU date
command
Set the TZ environment variable to your timezone
1 | TZ=Australia /Melbourne date -d "2021-01-01T01:06:48+00:00" -Iseconds |
Output:
1 | 2021-01-01T12:06:48+11:00 |
0 Comments