Skip to content

Commit

Permalink
Update time-formatting BBE with the latest change
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Sep 12, 2024
1 parent a740330 commit 0ca0bd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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[Asia/Colombo]");
test:assertEquals(outputs[4], "Email formatted string: Mon, 3 Dec 2007 10:15:30 Z");

test:assertEquals(outputs[5],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[Asia/Colombo]`) formatted string.
string civilString = check time:civilToString(civil1);
io:println(`Civil string representation: ${civilString}`);

Expand Down

0 comments on commit 0ca0bd9

Please sign in to comment.