tbel: doc Io tests: tbDate with ZoneId.systemDefault() - 3
This commit is contained in:
parent
a00ae9e621
commit
64930967ba
@ -2056,11 +2056,13 @@ class TbelInvokeDocsIoTest extends AbstractTbelInvokeTest {
|
|||||||
expected.put("dLocal_1", d1.toLocaleString());
|
expected.put("dLocal_1", d1.toLocaleString());
|
||||||
expected.put("dLocal_1_options", "8/6/23, 12:04:05 AM");
|
expected.put("dLocal_1_options", "8/6/23, 12:04:05 AM");
|
||||||
TbDate d2 = new TbDate(s2);
|
TbDate d2 = new TbDate(s2);
|
||||||
|
String options2Str = "{\"timeZone\":\"America/New_York\"}";
|
||||||
expected.put("dIso_2", d2.toISOString());
|
expected.put("dIso_2", d2.toISOString());
|
||||||
expected.put("dLocal_2_options", "8/5/23, 9:04:05 PM");
|
expected.put("dLocal_2_options", d2.toLocaleString("en-US", options2Str));
|
||||||
TbDate d3 = new TbDate(2023, 8, 6, 4, 4, 5);
|
TbDate d3 = new TbDate(2023, 8, 6, 4, 4, 5);
|
||||||
|
String options3Str = "{\"timeZone\":\"America/New_York\", \"pattern\": \"M-d/yyyy, h:mm=ss a\"}";
|
||||||
expected.put("dIso_3", d3.toISOString());
|
expected.put("dIso_3", d3.toISOString());
|
||||||
expected.put("dLocal_3_options", "8-5/2023, 9:04=05 PM");
|
expected.put("dLocal_3_options", d3.toLocaleString("en-US", options3Str));
|
||||||
TbDate d4 = new TbDate(2023, 8, 6, 4, 4, 5, "UTC");
|
TbDate d4 = new TbDate(2023, 8, 6, 4, 4, 5, "UTC");
|
||||||
String options4Str = "{\"timeZone\":\"America/New_York\",\"dateStyle\":\"full\",\"timeStyle\":\"full\"}";
|
String options4Str = "{\"timeZone\":\"America/New_York\",\"dateStyle\":\"full\",\"timeStyle\":\"full\"}";
|
||||||
expected.put("dIso_4", "2023-08-06T04:04:05Z");
|
expected.put("dIso_4", "2023-08-06T04:04:05Z");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user