陈剑华

Merge remote-tracking branch 'origin/main'

1 import { StringUtils } from './StringUtils'; 1 import { StringUtils } from './StringUtils';
2 import getLunar from './GetLunar'; 2 import getLunar from './GetLunar';
  3 +import { systemDateTime } from '@kit.BasicServicesKit';
3 4
4 /** 5 /**
5 * 日期/时间工具 6 * 日期/时间工具
@@ -436,7 +437,8 @@ export class DateTimeUtils { @@ -436,7 +437,8 @@ export class DateTimeUtils {
436 * 获取文章发布时间 437 * 获取文章发布时间
437 * */ 438 * */
438 public static getCommentTime(publishTime: number): string { 439 public static getCommentTime(publishTime: number): string {
439 - let currentTime: number = new Date().getTime(); 440 + // let currentTime: number = new Date().getTime();
  441 + let currentTime: number = systemDateTime.getTime(false);
440 let timeGap = currentTime - publishTime; 442 let timeGap = currentTime - publishTime;
441 let timeStr = "" 443 let timeStr = ""
442 if (timeGap >= 60 * 60 * 1000 * 48) { 444 if (timeGap >= 60 * 60 * 1000 * 48) {
@@ -167,7 +167,7 @@ struct localCard { @@ -167,7 +167,7 @@ struct localCard {
167 radius: 2, 167 radius: 2,
168 }) 168 })
169 .shadow({ 169 .shadow({
170 - radius: 5, 170 + radius: vp2px(5),
171 color: 'rgba(0, 0, 0, 0.10)', 171 color: 'rgba(0, 0, 0, 0.10)',
172 offsetX: 0, 172 offsetX: 0,
173 offsetY: 1 173 offsetY: 1