1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

Add specs for /wtf/datetime

This commit is contained in:
Chris Cummer
2019-08-03 18:54:04 -07:00
parent 681dd85ce6
commit d6254ebba6
3 changed files with 112 additions and 24 deletions

View File

@@ -2,6 +2,7 @@ package bamboohr
import (
"fmt"
"time"
"github.com/rivo/tview"
"github.com/wtfutil/wtf/wtf"
@@ -36,8 +37,8 @@ func (widget *Widget) Refresh() {
todayItems := client.Away(
"timeOff",
wtf.Now().Format(wtf.DateFormat),
wtf.Now().Format(wtf.DateFormat),
time.Now().Local().Format(wtf.DateFormat),
time.Now().Local().Format(wtf.DateFormat),
)
widget.Redraw(widget.CommonSettings().Title, widget.contentFrom(todayItems), false)