我有一个 web 应用程序,而不是应用程序,当我向 Firebase 的 Cloud Functions 发送函数时,new Data()无法获取我的当地时间、使用的时间.toLocaleString('pt-BR', { timeZone: 'America/Sao_Paulo' })和其他互联网方式,但没有成功。
new Data()
.toLocaleString('pt-BR', { timeZone: 'America/Sao_Paulo' })
我无法在 Firebase 设置中更改应用程序的时区,因为它只是一个 Web 应用程序,而不是一个应用程序。
firebase google-cloud-functions
firebase ×1
google-cloud-functions ×1