marnusw / date-fns-tz

Complementary library for date-fns v2 adding IANA time zone support
MIT License
1.01k stars 112 forks source link

`formatInTimeZone` does not use the `timezone` in `options` to parse the input `date` string #279

Closed dsun-cp closed 2 months ago

dsun-cp commented 2 months ago

Root Cause: It calls the toZonedTime without passing the options.timezone.

  return format(toZonedTime(date, timeZone), formatStr, options)
marnusw commented 2 months ago

Closed via #280. v3.1.2