[JAVA-3140] ObjectIdTest is failed Created: 15/Jan/19  Updated: 28/Oct/23  Resolved: 24/Jan/19

Status: Closed
Project: Java Driver
Component/s: BSON, Test Failure
Affects Version/s: None
Fix Version/s: 3.11.0

Type: Bug Priority: Major - P3
Reporter: Farès Hassak Assignee: Ross Lawley
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File 2019-01-15 22_02_39-Test results - Package org.bson.types.png     PNG File 2019-01-15 22_04_36-Test results - Class org.bson.types.ObjectIdTest.png    

 Description   

java.text.ParseException: Unparseable date: "07-Feb-2106 06:28:15 -0000"
	at java.base/java.text.DateFormat.parse(DateFormat.java:395)
	at org.bson.types.ObjectIdTest.getDate(ObjectIdTest.java:193)
	at org.bson.types.ObjectIdTest.testTimeMaxInt(ObjectIdTest.java:213)



 Comments   
Comment by Githook User [ 24/Jan/19 ]

Author:

{'email': 'fares.hassak@gmail.com', 'name': 'Farès Hassak', 'username': 'fhassak'}

Message: Set English Locale as default date format symbols (#502)

JAVA-3140
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/f2bc193d4530d398b04e171ef5f79248889caf30

Comment by Cloud GitHub Webhooks [ 24/Jan/19 ]

rozza merged a pull request (JAVA-3140 set English Locale as default date format symbols) into the following branch:
master: f2bc193d4530d398b04e171ef5f79248889caf30

Comment by Farès Hassak [ 16/Jan/19 ]

yes , it's better to set locale in gradle.properties. I will update my PR :

org.gradle.jvmargs=-Duser.country=US -Duser.language=en

 

Comment by Jeffrey Yemin [ 16/Jan/19 ]

Yeah, there are a bunch of ways: https://stackoverflow.com/questions/8809098/how-do-i-set-the-default-locale-for-my-jvm

Comment by Ross Lawley [ 16/Jan/19 ]

Can we set locale flags via gradle? - it would be good to catch these test failures in evergreen.

Comment by Ross Lawley [ 16/Jan/19 ]

Thanks Farès Hassak for the ticket and the fix.

Generated at Thu Feb 08 08:58:53 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.