fix offset to not need system timezone
This commit is contained in:
@@ -223,11 +223,7 @@ func (ntg NTGVision) SearchZips(zips []string) ([]Job, error) {
|
||||
|
||||
func (ntg NTGVision) workingHours(now time.Time) bool {
|
||||
// TODO assert M-F 9-4 EST
|
||||
location, err := time.LoadLocation("EST")
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
now = now.In(location)
|
||||
now = now.In(time.FixedZone("EST", -5*60*60))
|
||||
switch now.Weekday() {
|
||||
case time.Sunday, time.Saturday:
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user