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

Fixes #38. Sunrise/set formatting

This commit is contained in:
Chris Cummer 2018-05-14 21:08:07 -07:00
parent 89497561bc
commit f05aa903dc

View File

@ -43,7 +43,7 @@ func (widget *Widget) description(cityData *owm.CurrentWeatherData) string {
func (widget *Widget) sunInfo(cityData *owm.CurrentWeatherData) string {
return fmt.Sprintf(
" Rise: %s Set: %s",
" Rise: %s Set: %s",
wtf.UnixTime(int64(cityData.Sys.Sunrise)).Format("15:04 MST"),
wtf.UnixTime(int64(cityData.Sys.Sunset)).Format("15:04 MST"),
)