Skip to content

Patch timezone offset handling for UTC#37

Open
dtflowers wants to merge 1 commit into
alex35mil:masterfrom
fleetio:patch_timezone_offset_handling
Open

Patch timezone offset handling for UTC#37
dtflowers wants to merge 1 commit into
alex35mil:masterfrom
fleetio:patch_timezone_offset_handling

Conversation

@dtflowers
Copy link
Copy Markdown

This issue was first identified here: #7 and was partially patched in this commit: d06a5dc

Currently, however, if you pass 0 as an integer as the timezone_offset to try to standardize for UTC, the validation still fails to accept it because, as mentioned in the thread above, 0 is falsy and thus, the checkInt validation fails. (This line: https://github.com/alexfedoseev/sourcebuster-js/blob/master/src/js/params.js#L107)

This PR should at least be on the right track towards patching this, it seems to work for us.

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.

1 participant