fixed published_date parsing
This commit is contained in:
		
							
								
								
									
										2
									
								
								api.go
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								api.go
									
									
									
									
									
								
							@ -175,7 +175,7 @@ func (api *Api) getChapterEntriesByPageIndex(novelID NovelID, pageIndex int) ([]
 | 
			
		||||
		groupID := path.Base(s.Find("td:nth-child(2) a").AttrOr("href", ""))
 | 
			
		||||
		link := "https:" + td3.AttrOr("href", "")
 | 
			
		||||
 | 
			
		||||
		date, err := time.Parse("01/02/2006", strings.TrimSpace(s.Find("td:first-child").Text()))
 | 
			
		||||
		date, err := time.Parse("02/01/2006", strings.TrimSpace(s.Find("td:first-child").Text()))
 | 
			
		||||
		if err != nil {
 | 
			
		||||
			adverr.Println(ErrApiElementNotFound.Wrap(err, "td:first-child"))
 | 
			
		||||
			return
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user