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:
parent
89497561bc
commit
f05aa903dc
@ -43,7 +43,7 @@ func (widget *Widget) description(cityData *owm.CurrentWeatherData) string {
|
|||||||
|
|
||||||
func (widget *Widget) sunInfo(cityData *owm.CurrentWeatherData) string {
|
func (widget *Widget) sunInfo(cityData *owm.CurrentWeatherData) string {
|
||||||
return fmt.Sprintf(
|
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.Sunrise)).Format("15:04 MST"),
|
||||||
wtf.UnixTime(int64(cityData.Sys.Sunset)).Format("15:04 MST"),
|
wtf.UnixTime(int64(cityData.Sys.Sunset)).Format("15:04 MST"),
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user