Closed fpaparoni closed 6 years ago
Utils.nowAsRFC1123() now always returns a value for Locale.US because otherwise it isn't accepted by cosmosdb, so I don't understand a test for non US Locale.
I assume on non-english locale in the absence of your PR Utils.nowAsRFC1123() returns invalid type format. am I right?
if so then maybe we can have a unit test which sets the non-english locale in the JVM, gets the value of validate Utils.nowAsRFC1123() time and format, and then set back default locale in the JVM.
This test will pass for your PR, but will fail in the absence of your PR. Does this make sense?
Ok I understood the purpose of it and I pushed the unit test
Thank you @fpaparoni merging this PR. This will be in the next release.
@fpaparoni thanks for the PR.
I wonder if we can have a unit test for this which Utils.nowAsRFC1123() returns the correct value for Non US Locale? Can you please add that too?