Skip to content

Commit

Permalink
Fix build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
ayeshLK committed Sep 12, 2024
1 parent 0ca0bd9 commit 8855a86
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-12T23:20:50.520+05:30[Asia/Colombo]");
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],
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. `2021-04-12T23:20:50.520+05:30[Asia/Colombo]`) 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}`);

Expand Down

0 comments on commit 8855a86

Please sign in to comment.