HEX
Server: nginx
System: Linux 167746b7b9c4 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
User: www-data (1000)
PHP: 8.4.3
Disabled: NONE
Upload Files
File: /www/sites/cbgdh_com/index/wp-content/themes/onenav/vendor/yurunsoft/pay-sdk/src/Lib/Util.php
<?php

namespace Yurun\PaySDK\Lib;

class Util
{
    private function __construct()
    {
    }

    /**
     * 获取北京时间的时间戳.
     *
     * 此方法可以无视默认时区设置,获取到真实准确的时间戳
     *
     * @return int
     */
    public static function getBeijingTime()
    {
        return strtotime(gmdate('Y-m-d H:i:s')) + 8 * 60 * 60;
    }
}