Skip to content

Commit

Permalink
rollout.py: Update location information
Browse files Browse the repository at this point in the history
  • Loading branch information
c4rt0 committed Apr 23, 2024
1 parent cdb1ffc commit 15b4431
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rollout.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,12 @@ def report(info, skip_version_check=False):
print(f"{stream} rollout of {version} at 100%")
return
ts = datetime.fromtimestamp(rollout["start_epoch"], timezone.utc)
raleigh_ts = ts.astimezone(dateutil.tz.gettz("America/Toronto"))
berlin_ts = ts.astimezone(dateutil.tz.gettz("Europe/Berlin"))
brazil_ts = ts.astimezone(dateutil.tz.gettz("America/Sao_Paulo"))
colorado_ts = ts.astimezone(dateutil.tz.gettz("America/Denver"))
ireland_ts = ts.astimezone(dateutil.tz.gettz("Europe/Dublin"))
raleigh_ts = ts.astimezone(dateutil.tz.gettz("America/Toronto"))
vancouver_ts = ts.astimezone(dateutil.tz.gettz("America/Vancouver"))
mins = rollout["duration_minutes"]
hrs = mins / 60.0
ts_now = datetime.now(timezone.utc)
Expand All @@ -184,8 +188,12 @@ def report(info, skip_version_check=False):
print(f"{stream}")
print(f" version: {version} ({latest_info})")
print(f" start: {ts} UTC ({delta_str})")
print(f" {berlin_ts} Germany/France/Poland")
print(f" {brazil_ts} Brazil")
print(f" {colorado_ts} Colorado")
print(f" {ireland_ts} Ireland")
print(f" {raleigh_ts} Raleigh/New York/Toronto")
print(f" {berlin_ts} Berlin/France/Poland")
print(f" {vancouver_ts} Vancouver")
print(f" duration: {mins}m ({hrs}h)")


Expand Down

0 comments on commit 15b4431

Please sign in to comment.