neo4j / neo4j

Graphs for Everyone
http://neo4j.com
GNU General Public License v3.0
13.29k stars 2.38k forks source link

Temporal Functions are not Locale sensitive #12716

Open magaton opened 3 years ago

magaton commented 3 years ago

Is your feature request related to a problem? Please describe. Currently, all temporal functions work only according to ISO standard, which is how weeks are calculated in Europe, but not in US, Canada, etc.

Describe the solution you'd like I would like the temporal functions to accept user.country and user.language environment variables and resolve the first day of the week and when the first week starts automatically.

mnd999 commented 3 years ago

Thanks for the feature request, I have passed it to the product team.

magaton commented 3 years ago

I have demoed here how env variables are picked up when constructing default locale and change the week order number (result) https://github.com/magaton/week-number