Jelastic-如何将服务器日期和时间更改为UTC? [英] Jelastic - How to change server date and time to UTC?

查看:125
本文介绍了Jelastic-如何将服务器日期和时间更改为UTC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Jelastic服务器环境时钟更改为UTC.

I'm trying to change my Jelastic server environment clock to UTC.

我尝试过:

hwclock --systohc

但是我的服务器(CentOS)某种程度上无法识别命令hwclock.也许他们将其删除了,我不知道.我尝试搜索他们的文档,但没有找到如何更改服务器时钟的方法.

But my server (CentOS) somehow does not recognize the command hwclock. Perhaps they removed it, I don't know. I tried searching their docs but did not find how to change the server clock.

有什么想法吗?

推荐答案

通常,您应该在应用程序级别而不是服务器级别上操纵时区(例如,根据php.ini中的需要设置时区).

In general you are expected to manipulate the timezone at application level, not server level (e.g. set the timezone to your needs in php.ini).

如果您需要在服务器级别更改时区(例如,使cron更加容易理解),则可以为此与您的托管服务提供商的支持团队联系.

If you need the timezone to be changed at server level (e.g. to make cron more understandable), you can contact your hosting provider's support team for this.

时钟本身应该已经在平台级别与NTP正确同步,因此这只应该在时区之间进行切换...

The clock itself should already be correctly synchronised with NTP at platform level, so this should only ever be about switching between timezones...

这篇关于Jelastic-如何将服务器日期和时间更改为UTC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆