0
我正在使用heroku服務器。我想知道heroku服務器的時區。我在ubantu有沒有可用的命令?如何在ubantu中使用命令獲取heroku服務器時區
我正在使用heroku服務器。我想知道heroku服務器的時區。我在ubantu有沒有可用的命令?如何在ubantu中使用命令獲取heroku服務器時區
在命令行試試這個:
date +%Z
或者在node.js中你可以得到的時區偏移:
console.log((new Date()).getTimezoneOffset());