Updated regular for absense time analyzer #103

Merged
romanskijdev merged 1 commits from fix-permissions into main 2026-08-05 14:00:32 +03:00
2 changed files with 2 additions and 2 deletions

View File

@ -567,7 +567,7 @@ type dashboardAbsenceMetadata struct {
}
var dashboardAbsenceDateRe = regexp.MustCompile(`(\d{1,2})[.,](\d{1,2})\.(\d{4})`)
var dashboardAbsenceTimeRe = regexp.MustCompile(`(\d{1,2})[:\.](\d{2}).*?(\d{1,2})[:\.](\d{2})`)
var dashboardAbsenceTimeRe = regexp.MustCompile(`с\s*(\d{1,2})[:\.](\d{2})\s+до\s*(\d{1,2})[:\.](\d{2})`)
func (s *DashboardReg) getAbsentToday(ctx context.Context) []map[string]interface{} {
loc, err := time.LoadLocation("Europe/Moscow")

View File

@ -288,7 +288,7 @@ type AbsentEmployeeInfo struct {
var absenceDateRe = regexp.MustCompile(`(\d{1,2})[.,](\d{1,2})\.(\d{4})`)
var absenceTimeRe = regexp.MustCompile(`(\d{1,2})[:\.](\d{2}).*?(\d{1,2})[:\.](\d{2})`)
var absenceTimeRe = regexp.MustCompile(`с\s*(\d{1,2})[:\.](\d{2})\s+до\s*(\d{1,2})[:\.](\d{2})`)
func (dr *DailyReminder) getAbsentEmployeesToday(ctx context.Context, mskLocation *time.Location) []AbsentEmployeeInfo {
today := time.Now().In(mskLocation)