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

[ENHANCEMENT] Enable specifying a project-specific timezone #425

Open
srcds opened this issue Nov 14, 2022 · 5 comments
Open

[ENHANCEMENT] Enable specifying a project-specific timezone #425

srcds opened this issue Nov 14, 2022 · 5 comments
Assignees

Comments

@srcds
Copy link
Contributor

srcds commented Nov 14, 2022

Testing the upcoming ARX version 3.9.1 revealed a bug in the date hierarchy wizard. For rather old dates (before 1900) the days are outputted with an offset of -1 day when creating hierarchies. Also, the dates (which were provided without hours and minutes) are associated with 23:53:28 when selecting the dd.MM.yyyy-HH:mm format in the wizard. Expected would be 00:00:00.

grafik

Example project:
arx_391_old_dates.zip

@prasser
Copy link
Collaborator

prasser commented Nov 14, 2022

Not sure whether it really is a bug:

https://postgrespro.com/list/thread-id/1228096

What happens, when using a format without hours, minutes and seconds?

@prasser prasser closed this as completed Nov 14, 2022
@prasser prasser reopened this Nov 14, 2022
@prasser
Copy link
Collaborator

prasser commented Nov 14, 2022

Quote: "I refer you to the IANA timezone database's entry for Europe/Berlin:

Zone NAME GMTOFF RULES FORMAT [UNTIL]

Zone Europe/Berlin 0:53:28 - LMT 1893 Apr 1:00 C-Eur CE%sT 1945 May 24 2:00 1:00
SovietZone CE%sT 1946 1:00 Germany CE%sT 1980 1:00 EU CE%sT

which says that timekeeping before April 1893 was done according to local mean solar time, 53:28 east of Greenwich; so a timestamp specified as midnight GMT+1 comes out as 23:53:28 local time."

@srcds
Copy link
Contributor Author

srcds commented Nov 14, 2022

What happens, when using a format without hours, minutes and seconds?

The offset also appears when just using Day/month/year. As shown in Level-4 on the screenshot above.

@prasser
Copy link
Collaborator

prasser commented Nov 14, 2022

Ah, true.

@prasser prasser added enhancement and removed bug labels Nov 15, 2022
@prasser prasser changed the title [BUG] Hierarchy date wizard returns dates with 1 day offset [ENHANCEMENT] Enable specifying a project-specific timezone Nov 15, 2022
@prasser
Copy link
Collaborator

prasser commented Nov 15, 2022

OK. Took a look at this. It is not really a bug, just that the UI currently uses the local timezone. So this is actually a feature request:
(1) Enable specifying a per-project timezone as part of the protect properties
(2) Enable using project-specific or another user-specified timezone in the UI hierarchy builder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants