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

Fix RFC 3339 date offset handling #33

Closed
wants to merge 2 commits into from

Conversation

rcrichton
Copy link
Contributor

UTC date and time components were being used but a time offset was also being calculated. Either a time offset of UTC should be used or the date and time should take the offset into account. I chose to implement the former option as it is easier, however, it could go either way.

UTC dates were being used but a time offset was being calculated. Either
a time offset of UTC should be used or the date and time should take the
offset into account. I chose to implement the former option.
rcrichton added a commit to jembi/openhim-mediator-RFC3881toDICOM that referenced this pull request Dec 14, 2015
The official version of glossy doesn't handle date offsset properly when
producing syslog messages. There is a PR open, but for now we can use
the fork.

Here is the PR: squeeks/glossy#33
@rcrichton
Copy link
Contributor Author

@squeeks how does this look to you? Anything I'm missing?

@squeeks
Copy link
Owner

squeeks commented Dec 15, 2015

Sorry, but I think this should go the other way - although "UTC all the things" is a poor assumption when there are human (not machine) reasons for wanting to provide timestamps in a particular TZ.

Also, it's worth noting that the tests are run as CET because node.js's own tests were, once upon a time.

@squeeks squeeks mentioned this pull request Dec 15, 2015
rcrichton added a commit to rcrichton/glossy that referenced this pull request Dec 17, 2015
Glossy was mixing a time offset with UTC dates when producing syslog
messages. This change fixes this so that time offsets are used properly.

Original discussion around this can be found here:
squeeks#33
@rcrichton
Copy link
Contributor Author

@squeeks I've created a new PR doing this the other way. Please could you have a look at the new one: #34

@rcrichton rcrichton closed this Dec 17, 2015
squeeks pushed a commit that referenced this pull request Dec 24, 2016
Glossy was mixing a time offset with UTC dates when producing syslog
messages. This change fixes this so that time offsets are used properly.

Original discussion around this can be found here:
#33
mikehu pushed a commit to logdna/glossy that referenced this pull request Jan 11, 2017
Glossy was mixing a time offset with UTC dates when producing syslog
messages. This change fixes this so that time offsets are used properly.

Original discussion around this can be found here:
squeeks#33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants