Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我得到了这样的字符串:
[ 15.04.2012 15:48:03 ] blahblah [ 17.02.2012 22:49:11 ] blahblah [ 18.11.2011 10:11:39 ] blahblah
日期时间是 utc,如何用 utc+8 日期时间替换这些日期时间字符串?
如果您知道时区是 +0 并且您想将其更改为 utc+8 为什么不添加 8 小时?
echo date('d.m.Y G:i:s', strtotime('+8 hours', strtotime('15.04.2012 15:48:03'))); // 15.04.2012 23:48:03