From fcd0bb46e5f3daeecd9a2b39e57627bda5597bb6 Mon Sep 17 00:00:00 2001 From: Klesh Wong Date: Thu, 5 Aug 2021 10:31:46 +0800 Subject: [PATCH] feat: add weekday for world time --- win/ahk/Spotlight.ahk | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/win/ahk/Spotlight.ahk b/win/ahk/Spotlight.ahk index d5abf92..5f3323b 100644 --- a/win/ahk/Spotlight.ahk +++ b/win/ahk/Spotlight.ahk @@ -159,18 +159,13 @@ SpotlightSwitchWindow(keyword, stage) { } cmd_wt() { - TIMEZONES := { "Atlantic": -3 } + TIMEZONES := { "North American": -3, "Hezheng Yin": -7, "Camille": +2 } - - ; dt := A_NowUTC - ; dt += -3, Hours - ; FormatTime, timeText, %A_Now%, dd HH:mm - ; LogDebug("SPOTLIGHT >>> now {1}", timeText) items := Array() for zone, offset in TIMEZONES { dt = %A_NowUTC% dt += offset, Hours - FormatTime, timeText, %dt%, dd HH:mm + FormatTime, timeText, %dt%, dd ddd HH:mm items.Push(Array(Format("{1:-20} {2}", zone, timeText))) } SpotlightUpdateItems(items)