From 9f3c91936853e0bea828c6f0f6a898f58d916842 Mon Sep 17 00:00:00 2001 From: haoouba <2323333339@qq.com> Date: Mon, 15 Feb 2021 14:21:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/joe.global.js | 3 +-- core/function.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/assets/js/joe.global.js b/assets/js/joe.global.js index 314694d..75d2d1a 100644 --- a/assets/js/joe.global.js +++ b/assets/js/joe.global.js @@ -410,7 +410,7 @@ document.addEventListener('DOMContentLoaded', () => { /* 初始化网站运行时间 */ { const getRunTime = () => { - const birthDay = new Date('2021/1/1 00:00:00') + const birthDay = new Date(Joe.BIRTHDAY) const today = +new Date() const timePast = today - birthDay.getTime() let day = timePast / (1000 * 24 * 60 * 60) @@ -431,7 +431,6 @@ document.addEventListener('DOMContentLoaded', () => { $('.joe_run__second').html(second) } if (Joe.BIRTHDAY && /(\d{4})\/(\d{1,2})\/(\d{1,2}) (\d{1,2})\:(\d{1,2})\:(\d{1,2})/.test(Joe.BIRTHDAY)) { - console.log(1); getRunTime() setInterval(getRunTime, 1000) } diff --git a/core/function.php b/core/function.php index 143d8be..8a7e780 100644 --- a/core/function.php +++ b/core/function.php @@ -3,7 +3,7 @@ /* 获取主题当前版本号 */ function _getVersion() { - return "5.0.5"; + return "5.0.6"; }; /* 判断是否是手机 */