You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ptomato and I are running across interesting behavior for chinese/dangi calendars in Node 12 vs. Node 14. I assume it's related to #225 and/or #349? We could use some advice. Specifically:
What do the year and era fields refer to in Node 12 output? Is there an easy formula to convert these values to an ISO year?
Is there any combination of options in Node 12 to get the relatedYear in the output?
I'm asking because tc39/proposal-temporal#1245 is adding proof-of-concept support for all ICU calendars and I'd prefer for that PR to work in Node 12 if possible. That PR depends on DateTimeFormat.formatToParts output to convert ISO dates to calendar dates and also (in a very hacky, poor-performing, not-for-production way-- but OK for proof-of-concept) for converting calendar dates to ISO.
Here's what @ptomato sees in node 12.16.1 (v8 7.8.279.23-node.31):
@ptomato and I are running across interesting behavior for chinese/dangi calendars in Node 12 vs. Node 14. I assume it's related to #225 and/or #349? We could use some advice. Specifically:
year
andera
fields refer to in Node 12 output? Is there an easy formula to convert these values to an ISO year?relatedYear
in the output?I'm asking because tc39/proposal-temporal#1245 is adding proof-of-concept support for all ICU calendars and I'd prefer for that PR to work in Node 12 if possible. That PR depends on
DateTimeFormat.formatToParts
output to convert ISO dates to calendar dates and also (in a very hacky, poor-performing, not-for-production way-- but OK for proof-of-concept) for converting calendar dates to ISO.Here's what @ptomato sees in node 12.16.1 (v8 7.8.279.23-node.31):
Here's what I see in Node v14.4.0:
The text was updated successfully, but these errors were encountered: