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

The Attribute Table is currently working in UTC by default, we want to customize this behaviour #10754

Open
1 task done
MV88 opened this issue Jan 14, 2025 · 0 comments · May be fixed by #10760
Open
1 task done

The Attribute Table is currently working in UTC by default, we want to customize this behaviour #10754

MV88 opened this issue Jan 14, 2025 · 0 comments · May be fixed by #10760
Assignees
Milestone

Comments

@MV88
Copy link
Contributor

MV88 commented Jan 14, 2025

Description

The Attribute Table is currently working in UTC by default, therefore all date types values in MapStore are converted there in that time zone. The reason of this is that GML specifications expects temporal values expressed in UTC.
The current logic leads to scenarios were the time sent by the server is not the one MS displays in the Attribute Table (e.g. if server side date-time values are represented on a different time zone).

image

For this reason, MS should be enhanced to prevent this conversion and represent data in the expected time zone to final users.

How to reproduce

  • Use the above map to see how date-time attributes are displayed considering the time zone on the server side is TZ=Europe/Madrid

Expected Result

Date/Time attributes should be displayed in the same time zone of the server. The client should not make any conversion and is should display date/time values as they are sent by the server.

Current Result

The Attribute Table is currently working in UTC by default and date/time values are converted on that time zone.

  • Not browser related
Browser info (use this site: https://www.whatsmybrowser.org/ for non expert users)
Browser Affected Version
Internet Explorer
Edge
Chrome
Firefox
Safari

Other useful information

@MV88 MV88 added this to the 2025.01.00 milestone Jan 14, 2025
@MV88 MV88 self-assigned this Jan 14, 2025
MV88 added a commit to MV88/MapStore2 that referenced this issue Jan 16, 2025
@MV88 MV88 changed the title Problem in FeatureEditor displaying wrong datetime on fields The Attribute Table is currently working in UTC by default, we want to customize this behaviour Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant