Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
934a306bc9 |
@@ -224,6 +224,7 @@ func (ntg NTGVision) SearchZips(zips []string) ([]Job, error) {
|
|||||||
func (ntg NTGVision) workingHours(now time.Time) bool {
|
func (ntg NTGVision) workingHours(now time.Time) bool {
|
||||||
// TODO assert M-F 9-4 EST
|
// TODO assert M-F 9-4 EST
|
||||||
now = now.In(time.FixedZone("EST", -5*60*60))
|
now = now.In(time.FixedZone("EST", -5*60*60))
|
||||||
|
logtr.Debugf("ntg.workingHours: %s: weekday=%v (sun=%v, sat=%v), hour=%v (ok=9..16)", now.String(), now.Weekday(), time.Sunday, time.Saturday, now.Hour())
|
||||||
switch now.Weekday() {
|
switch now.Weekday() {
|
||||||
case time.Sunday, time.Saturday:
|
case time.Sunday, time.Saturday:
|
||||||
return false
|
return false
|
||||||
|
|||||||
Reference in New Issue
Block a user