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

Make sure input value=12:30:01 doesn't turn into 12:30:1 #25494

Merged
merged 1 commit into from Feb 12, 2020

Conversation

@pshaughn
Copy link
Member

pshaughn commented Jan 11, 2020

Fixed convert_valid_normalized_local_date_and_time_string to add the mandatory leading 0 before seconds values that needed it, added tests to see that various-length strings with zeroes in them would roundtrip properly.


  • ./mach build -d does not report any errors
  • ./mach test-tidy does not report any errors
  • These changes fix #25493
  • There are tests for these changes
@highfive
Copy link

highfive commented Jan 11, 2020

Heads up! This PR modifies the following files:

  • @asajeffrey: components/script/dom/bindings/str.rs
  • @KiChjang: components/script/dom/bindings/str.rs
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Jan 11, 2020

Opened new PR for upstreamable changes.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21139.

@teapotd teapotd mentioned this pull request Jan 13, 2020
4 of 4 tasks complete
@jdm
jdm approved these changes Feb 12, 2020
@jdm
Copy link
Member

jdm commented Feb 12, 2020

This can merge with a rebase.

@jdm jdm assigned jdm and unassigned asajeffrey Feb 12, 2020
@pshaughn pshaughn force-pushed the pshaughn:leadingzeroes branch from da66c70 to 6dc8f67 Feb 12, 2020
@servo-wpt-sync
Copy link
Collaborator

servo-wpt-sync commented Feb 12, 2020

Transplanted upstreamable changes to existing PR.

Completed upstream sync of web-platform-test changes at web-platform-tests/wpt#21139.

@jdm
Copy link
Member

jdm commented Feb 12, 2020

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

📌 Commit 6dc8f67 has been approved by jdm

@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

Testing commit 6dc8f67 with merge da75ef2...

bors-servo added a commit that referenced this pull request Feb 12, 2020
Make sure input value=12:30:01 doesn't turn into 12:30:1

Fixed convert_valid_normalized_local_date_and_time_string to add the mandatory leading 0 before seconds values that needed it, added tests to see that various-length strings with zeroes in them would roundtrip properly.

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #25493

<!-- Either: -->
- [X] There are tests for these changes

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
@bors-servo
Copy link
Contributor

bors-servo commented Feb 12, 2020

☀️ Test successful - status-taskcluster
Approved by: jdm
Pushing da75ef2 to master...

@bors-servo bors-servo merged commit 6dc8f67 into servo:master Feb 12, 2020
2 checks passed
2 checks passed
Community-TC (pull_request) TaskGroup: success
Details
homu Test successful
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

6 participants
You can’t perform that action at this time.