Toggle navigation
Toggle navigation
This project
Loading...
Sign in
developOne
/
harmonyPool
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
陈剑华
2024-08-22 18:08:58 +0800
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
41497a89ea48709ff3f181eedfd7be656b8dbb66
41497a89
2 parents
7db4b9df
fad0f870
Merge remote-tracking branch 'origin/main'
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
sight_harmony/commons/wdKit/src/main/ets/utils/DateTimeUtils.ts
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
sight_harmony/commons/wdKit/src/main/ets/utils/DateTimeUtils.ts
View file @
41497a8
import
{
StringUtils
}
from
'./StringUtils'
;
import
getLunar
from
'./GetLunar'
;
import
{
systemDateTime
}
from
'@kit.BasicServicesKit'
;
/**
* 日期/时间工具
...
...
@@ -436,7 +437,8 @@ export class DateTimeUtils {
* 获取文章发布时间
* */
public
static
getCommentTime
(
publishTime
:
number
):
string
{
let
currentTime
:
number
=
new
Date
().
getTime
();
// let currentTime: number = new Date().getTime();
let
currentTime
:
number
=
systemDateTime
.
getTime
(
false
);
let
timeGap
=
currentTime
-
publishTime
;
let
timeStr
=
""
if
(
timeGap
>=
60
*
60
*
1000
*
48
)
{
...
...
sight_harmony/features/wdComponent/src/main/ets/components/compview/ZhSingleRow04.ets
View file @
41497a8
...
...
@@ -167,7 +167,7 @@ struct localCard {
radius: 2,
})
.shadow({
radius:
5
,
radius:
vp2px(5)
,
color: 'rgba(0, 0, 0, 0.10)',
offsetX: 0,
offsetY: 1
...
...
Please
register
or
login
to post a comment