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"; }; /* 判断是否是手机 */