Skip to content

Unit Test Addition and Timing modification#1137

Merged
BryonLewis merged 1 commit into
bugfix/1124from
bugfix/1124-bryon
Jan 25, 2022
Merged

Unit Test Addition and Timing modification#1137
BryonLewis merged 1 commit into
bugfix/1124from
bugfix/1124-bryon

Conversation

@BryonLewis
Copy link
Copy Markdown
Collaborator

Looks like another +1 for unit tests. I wanted to add a quick unit test and I think the timing was off (let me know if I'm wrong). It looks like if you use utc(Number) that number needs to be specified in milliseconds (X1000) instead of seconds. You could do that or you could do utc(0).seconds(Number) to get the proper value.

I also added padding to the JS version so it would match the six digits of the python/web version of strftime(%f)

@BryonLewis BryonLewis requested a review from subdavis January 25, 2022 17:27
@BryonLewis BryonLewis merged commit 1a8e731 into bugfix/1124 Jan 25, 2022
@BryonLewis BryonLewis deleted the bugfix/1124-bryon branch January 25, 2022 17:49
subdavis added a commit that referenced this pull request Jan 25, 2022
* Fix #1124

* Added test and padded to match (#1137)

Co-authored-by: BryonLewis <61746913+BryonLewis@users.noreply.github.com>
BryonLewis added a commit that referenced this pull request Feb 24, 2022
* Fix #1124

* Added test and padded to match (#1137)

Co-authored-by: BryonLewis <61746913+BryonLewis@users.noreply.github.com>
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.

2 participants