mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
Differentiate between right now Now() and today from midnight
This commit is contained in:
committed by
Chris Cummer
parent
27a267b123
commit
34b5b69231
@@ -38,8 +38,8 @@ func (widget *Widget) Refresh() {
|
||||
client := NewClient(url)
|
||||
todayItems := client.Away(
|
||||
"timeOff",
|
||||
wtf.Today().Format(wtf.DateFormat),
|
||||
wtf.Today().Format(wtf.DateFormat),
|
||||
wtf.Now().Format(wtf.DateFormat),
|
||||
wtf.Now().Format(wtf.DateFormat),
|
||||
)
|
||||
|
||||
widget.View.SetTitle(fmt.Sprintf(" 👽 Away (%d) ", len(todayItems)))
|
||||
|
||||
Reference in New Issue
Block a user