mirror of
https://github.com/Xevion/banner.git
synced 2025-12-10 18:06:35 -06:00
Add debug for current term resolution
This commit is contained in:
5
term.go
5
term.go
@@ -5,6 +5,8 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
_ "time/tzdata"
|
_ "time/tzdata"
|
||||||
|
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Term selection should yield smart results based on the current time, as well as the input provided.
|
// Term selection should yield smart results based on the current time, as well as the input provided.
|
||||||
@@ -36,6 +38,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
SpringRange, SummerRange, FallRange = GetYearDayRange(uint16(time.Now().Year()))
|
SpringRange, SummerRange, FallRange = GetYearDayRange(uint16(time.Now().Year()))
|
||||||
|
|
||||||
|
currentTerm, nextTerm := GetCurrentTerm(time.Now())
|
||||||
|
log.Debug().Str("CurrentTerm", fmt.Sprintf("%+v", currentTerm)).Str("NextTerm", fmt.Sprintf("%+v", nextTerm)).Msg("GetCurrentTerm")
|
||||||
}
|
}
|
||||||
|
|
||||||
type YearDayRange struct {
|
type YearDayRange struct {
|
||||||
|
|||||||
Reference in New Issue
Block a user