We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent da03ca9 commit f0e3243Copy full SHA for f0e3243
Task/iboxpay.js
@@ -263,7 +263,9 @@ function daytime(inputTime) {
263
};
264
//时间戳格式化日期
265
function time(inputTime) {
266
- var date = new Date(inputTime);
+ if ($.isNode()) {
267
+ var date = new Date(inputTime + 8 * 60 * 60 * 1000);
268
+ } else var date = new Date(inputTime);
269
Y = date.getFullYear() + '-';
270
M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
271
D = date.getDate() + ' ';
0 commit comments