diff --git a/examples/time-formatting-and-parsing/tests/time_formatting_and_parsing_test.bal b/examples/time-formatting-and-parsing/tests/time_formatting_and_parsing_test.bal index 90e0b39589..eaeaf67b7a 100644 --- a/examples/time-formatting-and-parsing/tests/time_formatting_and_parsing_test.bal +++ b/examples/time-formatting-and-parsing/tests/time_formatting_and_parsing_test.bal @@ -76,7 +76,7 @@ function testFunc() returns error? { test:assertEquals(outputs[2], "Converted civil value: {\"utcOffset\":{\"hours\":5,\"minutes\":30},\"timeAbbrev\":\"Asia/Colombo\",\"dayOfWeek\":1,\"year\":2021,\"month\":4,\"day\":12,\"hour\":23,\"minute\":20,\"second\":50.52}"); - test:assertEquals(outputs[3], "Civil string representation: 2021-04-12T17:50:50.520Z"); + test:assertEquals(outputs[3], "Civil string representation: 2021-04-12T23:20:50.520+05:30"); test:assertEquals(outputs[4], "Email formatted string: Mon, 3 Dec 2007 10:15:30 Z"); test:assertEquals(outputs[5], diff --git a/examples/time-formatting-and-parsing/time_formatting_and_parsing.bal b/examples/time-formatting-and-parsing/time_formatting_and_parsing.bal index 743c0e439e..0b6697611e 100644 --- a/examples/time-formatting-and-parsing/time_formatting_and_parsing.bal +++ b/examples/time-formatting-and-parsing/time_formatting_and_parsing.bal @@ -19,7 +19,7 @@ public function main() returns error? { io:println("Converted civil value: " + civil1.toString()); // Converts a given `time:Civil` value to a RFC 3339 - // (e.g. `2007-12-03T10:15:30.00Z`) formatted string. + // (e.g. `2021-04-12T23:20:50.520+05:30`) formatted string. string civilString = check time:civilToString(civil1); io:println(`Civil string representation: ${civilString}`); diff --git a/examples/time-formatting-and-parsing/time_formatting_and_parsing.out b/examples/time-formatting-and-parsing/time_formatting_and_parsing.out index acd96a9a17..3723252b13 100644 --- a/examples/time-formatting-and-parsing/time_formatting_and_parsing.out +++ b/examples/time-formatting-and-parsing/time_formatting_and_parsing.out @@ -2,7 +2,7 @@ $ bal run time_formatting_and_parsing.bal UTC value: [1196676930,0.12] UTC string representation: 2007-12-03T10:15:30.120Z Converted civil value: {"utcOffset":{"hours":5,"minutes":30},"timeAbbrev":"Asia/Colombo","dayOfWeek":1,"year":2021,"month":4,"day":12,"hour":23,"minute":20,"second":50.52} -Civil string representation: 2021-04-12T17:50:50.520Z +Civil string representation: 2021-04-12T23:20:50.520+05:30 Email formatted string: Mon, 3 Dec 2007 10:15:30 Z Civil record of the email string: {"utcOffset":{"hours":-8,"minutes":0},"timeAbbrev":"America/Los_Angeles","dayOfWeek":3,"year":2021,"month":3,"day":10,"hour":19,"minute":51,"second":55} Email string of the civil record: Wed, 10 Mar 2021 19:51:55 -0800 diff --git a/gradle.properties b/gradle.properties index 3d7ae6d6e1..d6305b1ba0 100644 --- a/gradle.properties +++ b/gradle.properties @@ -15,7 +15,7 @@ devIdpUrl=https://dev.api.asgardeo.io/oauth2/token/.well-known/openid-configurat # Stdlib Level 01 stdlibIoVersion=1.6.1 stdlibJavaArraysVersion=1.4.0 -stdlibTimeVersion=2.4.0 +stdlibTimeVersion=2.5.0 stdlibUrlVersion=2.4.0 stdlibXmldataVersion=2.7.0 observeVersion=1.2.3