diff --git a/CHANGELOG.md b/CHANGELOG.md index b78c0a0..223b476 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 3.5.6 + +- Fix non en-US date time parse #95 + # 3.5.5 - Move x-amz-security-token allocation before signV4 to correctly sign the request #92 diff --git a/pubspec.yaml b/pubspec.yaml index c4f5bbd..aa784f2 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: minio description: Unofficial MinIO Dart Client SDK that provides simple APIs to access any Amazon S3 compatible object storage server. -version: 3.5.5 +version: 3.5.6 homepage: https://github.com/xtyxtyx/minio-dart issue_tracker: https://github.com/xtyxtyx/minio-dart/issues diff --git a/test/utils_test.dart b/test/utils_test.dart index ec8d6e1..5b17a13 100644 --- a/test/utils_test.dart +++ b/test/utils_test.dart @@ -28,19 +28,13 @@ void testRfc7231Time() { expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue); }); - test( - 'works for non en-US locale', () async { - initializeDateFormatting('pt_BR'); - Intl.withLocale( - 'pt_BR', - () - { - expect(parseRfc7231Time(timeStringUtc), equals(timeUtc)); - expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue); - } - ); - } - ); + test('works for non en-US locale', () async { + initializeDateFormatting('pt_BR'); + Intl.withLocale('pt_BR', () { + expect(parseRfc7231Time(timeStringUtc), equals(timeUtc)); + expect(parseRfc7231Time(timeStringUtc).isUtc, isTrue); + }); + }); }); group('toRfc7231Time', () { @@ -52,18 +46,12 @@ void testRfc7231Time() { expect(toRfc7231Time(timeUtc), equals(timeStringUtc)); }); - test( - 'works for non en-US locale', () async { - initializeDateFormatting('pt_BR'); - Intl.withLocale( - 'pt_BR', - () - { - expect(toRfc7231Time(timeUtc), equals(timeStringUtc)); - } - ); - } - ); + test('works for non en-US locale', () async { + initializeDateFormatting('pt_BR'); + Intl.withLocale('pt_BR', () { + expect(toRfc7231Time(timeUtc), equals(timeStringUtc)); + }); + }); }); }