Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML config doesn't support all time formats on maxAge #126

Open
DavidHoessle opened this issue May 3, 2023 · 0 comments
Open

YAML config doesn't support all time formats on maxAge #126

DavidHoessle opened this issue May 3, 2023 · 0 comments

Comments

@DavidHoessle
Copy link

The yaml config doesn't seem to support any time specification above hour (h) such as d for day, M for month and y for year.

image

func getMaxAge(v string) (time.Duration, error) {
if v == "" {
return time.Duration(0), nil
}
return time.ParseDuration(v)
}

@DavidHoessle DavidHoessle changed the title YAML config doesn't support full time format on maxAge YAML config doesn't support all time formats on maxAge May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant