Firefox 中的日期对象错误但在 Chrome 中工作

我有一个函数来计算时间和日期。它在 Chrome 中运行良好,但在我的 Firefox 中不起作用。

这是我的代码

@Preview
@Composable
PreviewHomeScreen() {
  val devices = flow { emit(
    listOf(Device(1,"Device Name 1"),Device(2,"Device Name 2"))
  )}
  HomeScreen(devices)
}

Chrome 中的输出

{ "batch_start_date": "2020-06-30T18:30:00.000Z","batch_end_date": "2021-09-29T18:30:00.000Z","batch_start_time": "2000-01-01T03:30:42.000Z","batch_end_time": "2000-01-01T12:30:52.000Z" }

Firefox 中的输出

{ "batch_start_date": "2020-06-30T18:30:00.000Z",“batch_start_time”:无效日期, “batch_end_time”:无效日期 }

我不知道发生了什么。

请帮助

hmd520 回答:Firefox 中的日期对象错误但在 Chrome 中工作

暂时没有好的解决方案,如果你有好的解决方案,请发邮件至:iooj@foxmail.com
本文链接:https://www.f2er.com/3012.html

大家都在问