         
         let fromStation = self.fromStationNameTxt.stringValue
         let toStation = self.toStationNameTxt.stringValue
-        let date = getDateStr(queryDate.dateValue)
+        let date = getStrFromDate(queryDate.dateValue)
         
         logger.info("\(fromStation) -> \(toStation) \(date)  \(self.autoQueryNum)")
         

        if ticketTaskManager.ticketTasks.count == 0 {
            ticketTaskManager.ticketTasks.append(TicketTask())
        }
        setQueryParams()
        self.queryDateIndex = 0
    }

    
    var ticketTaskManager = TicketTasksManager()
   
    private func getStrFromDate(_ date:Date) -> String{
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd"
        
        return dateFormatter.string(from: date)
    }
    
    private func getDateFromStr(_ str:String) -> Date {
        let dateFormatter = DateFormatter()
        dateFormatter.dateFormat = "yyyy-MM-dd"
        dateFormatter.timeZone = TimeZone(abbreviation: "UTC")!
        return dateFormatter.date(from: str)!
    }
    
    private func setQueryParams() {
