-
Notifications
You must be signed in to change notification settings - Fork 49
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
displayed date/times are incorrect #117
Comments
You can set The default is |
Useful option. I played with it for a while, and got the wanted format, but it seems there's still a problem, caused by the date package itself : the time is always returned relative to the UTC timezone. I've search about it, and multiple time it's suggested to not use the default date package, but instead use either the new java.time package in java 8 or Joda-Time. I've already built a function to deal with this behavior, so no hurry about it, but this switch might be worth considering |
when you say "relative to the UTC timezone" what do you mean? do you have some examples? are you expecting it relative to local system timezone? also, try using |
Meaning this : local time is 22h10, GMT+1 (with daylight saving time) btw, I forgot to link a reference : https://stackoverflow.com/a/21940449 This aside, I ran the test, and the data sent from rundeck to rd-cli is indeed in UTC tz (the following job is scheduled at 06:15 am) :
Casting the date with a forced TZ might correct this, but not sure there wont be a side effect with other TZ |
i think there is a bug converting the date string (in UTC) into the correct date before rd displays it. that is also a separate issue from correctly rendering the parsed date into local time zone |
try the newest release |
Sorry, missed the comment as I didn't check back the issue : though it was closed, and usually, furthers comments are ignored ... most of the time. When I saw the new version between your 2 posts, I updated rd-cli. |
Hello,
I would like to have the iso-8601 date format with the complete time zone designation, supported by rundeck, either through a setting or an additional parameter on the command line.
Currently, rundeck-cli return the date in this format : 2017-05-2511:21:00+0200
Using the exact same date and time, iso-8601 date format is very close : 2017-05-25T13:21:00+0200
With a subtle difference : the time is in the local time, when rundeck-cli return the UTC time
Most utilities and languages, starting with the "date" command can immediately understand the iso-8601 date without error, but aren't able to do so with the rundeck-cli default format
The text was updated successfully, but these errors were encountered: