-
Notifications
You must be signed in to change notification settings - Fork 23
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
[FEATURE] versionInfo: Use UTC Timestamp #348
base: v2
Are you sure you want to change the base?
Conversation
@RandomByte the issue is related to the cachebuster but the code changes are for the version info. So I'm a bit confused 😕 |
0d3b58a
to
660a83e
Compare
Removed the reference to https://github.com/SAP/ui5-builder/issues/347 as it is actually unrelated. Still to be checked: Does the technical info dialog expect UTC or the user timezone? |
For the technical info dialog, |
In that case I guess it is an improvement to use the UTC time here. Should we append a |
That we have to check against the runtime, first. I don't remember where the cache buster takes the timestamp from. But AFAIK some code makes assumptions about the format of the timestamp. A trailing 'UTC' or 'Z' might confuse such code. Most likely, it is taken from a different location. And definitely, the ui5 tooling is not responsible yet for the cachebuster token of the CDN installation. But if the version.json is the source for the runtime I would keep the syntax of the timestamp aligned. |
So this PR should be good to merge for the time being? |
From my POV, yes. |
That's not quite true, right? CTRL+SHIFT+ALT+S CTRL+SHIFT+ALT+P |
Strange. I could swear I saw a simple setProperty. But now I see
which couldn't be any clearer :-( |
To compensate my embarrassing fault above a bit, I tried to get a full picture now, but what I see so far doesn't look nice :-( In the TechnicalInfo (CTRL-SHIFT-ALT P), method _generateLocalizedBuildDate does not only create a localized date, it also parses the original time stamp with a locale specific DateFormat instance. That is, it assumes a local timestamp, which will be wrong whenever server and client are not in the same TZ. So what about the sources for the timestamps? In the Maven build, the For the |
For a full picture, the UI5 tooling is still missing (at least the placeholder replacement in Global.js, sap-ui-version.json is the topic of this PR), but that's your home-turf :-) |
Couldn't we use DateFormat.getDateInstance in both cases and pass the Then we could eave this change as it is. Making it a "proper" UTC timestamp requires the TZ imho and is a different topic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it makes sense changing it here to UTC and adapt the UI5 codebase accordingly.
Does anybody depend on this timestamp being a "local" one?
No description provided.