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

[SR-4573] Date format inconsistent between XCTest on Darwin and Linux #372

Closed
alblue opened this issue Apr 12, 2017 · 3 comments
Closed

[SR-4573] Date format inconsistent between XCTest on Darwin and Linux #372

alblue opened this issue Apr 12, 2017 · 3 comments
Assignees

Comments

@alblue
Copy link
Contributor

@alblue alblue commented Apr 12, 2017

Previous ID SR-4573
Radar None
Original Reporter @alblue
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s XCTest
Labels Bug
Assignee @alblue
Priority Medium

md5: 36909d36fd2030528ab81fc2b786c37b

Issue Description:

On Darwin, tests get displayed as:

Test Suite 'All tests' started at 2017-04-12 16:50:11.630

On Linux, tests get displayed as:

Test Suite 'All tests' started at 16:06:28.533

The year/month/day is missing from the Linux version

formatter.dateFormat = "HH:mm:ss.SSS"

@alblue
Copy link
Contributor Author

@alblue alblue commented Apr 12, 2017

I believe the fix will be

  • formatter.dateFormat = "HH:mm:ss.SSS"
    + formatter.dateFormat = "yyyy-MM-dd HH:mm:ss.SSS"

but I have yet to test it

@alblue
Copy link
Contributor Author

@alblue alblue commented Apr 13, 2017

This fix appears to work, will prepare a patch

@alblue
Copy link
Contributor Author

@alblue alblue commented Apr 13, 2017

Patch submitted #186

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 9, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant