mirror of
https://codeberg.org/VnPower/PixivFE
synced 2024-12-06 19:16:23 +01:00
Add Accept-Language header for requests
This commit is contained in:
@@ -167,5 +167,11 @@ func GetTemplateFunctions() template.FuncMap {
|
||||
}
|
||||
return false
|
||||
},
|
||||
"reformatDate": func(s string) string {
|
||||
if len(s) != 8 {
|
||||
return s
|
||||
}
|
||||
return fmt.Sprintf("%s-%s-%s", s[4:], s[2:4], s[:2])
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user