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

TimeExpressionParser doesn't take into account southern hemisphere #1491

Open
Monica-Wood opened this issue Aug 28, 2023 · 2 comments
Open

Comments

@Monica-Wood
Copy link

If you have the locale en_AU and enter 'summer 2019' the dates are set June - Sept

These values are hardcoded in TimeExpressionParser.php.

Need a way to have a configuration option in datetime.conf or added to the en_AU.lang under TimeExpressionParser, where the seasons can be defined.

@Monica-Wood
Copy link
Author

FYI. I took the en_AU.lang file and filled it out as such

# Seasons
winterSeason = [summer]
springSeason = [autumn, fall]
summerSeason = [winter]
autumnSeason = [spring]

which is a bit of a hack and doesn't cover the fact that Australians are crazy and start their seasons on the 1st of the month
Summer = 1st Dec - 28/29 Feb
Autumn = 1 March - 31 May
Winter = 1 June - 31 August
Spring = 1 Sept - 30 Nov

@collectiveaccess
Copy link
Owner

If you want changes to the AU date/time config and/or season parsing please create a pull request for it.

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

2 participants