fix date format

This commit is contained in:
Ruidy 2024-06-20 18:45:34 +02:00
parent 82773aab3b
commit 69fdfa66af
No known key found for this signature in database
GPG key ID: E00F51288CB857CC

View file

@ -309,7 +309,7 @@ func extractString(pattern, content string) string {
func formatDate(date string) *time.Time { func formatDate(date string) *time.Time {
months := map[string]string{ months := map[string]string{
"janv.": "01", "fév": "02", "mar": "03", "avr": "04", "janv.": "01", "fév": "02", "mar": "03", "avr": "04",
"mai": "05", "jun": "06", "juil.": "07", "aoû": "08", "mai": "05", "juin": "06", "juil.": "07", "aoû": "08",
"sep": "09", "oct": "10", "nov": "11", "déc": "12", "sep": "09", "oct": "10", "nov": "11", "déc": "12",
} }
parts := strings.Split(date, " ") parts := strings.Split(date, " ")