Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
galaxy-iOS
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mobile-group
galaxy-iOS
Commits
7493d8a9
Commit
7493d8a9
authored
Jul 16, 2024
by
David黄金龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2处bug 修复
parent
c8f9b263
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
YHActivityModel.swift
...odules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
+7
-1
No files found.
galaxy/galaxy/Classes/Modules/Community(社区)/Activity(活动)/M/YHActivityModel.swift
View file @
7493d8a9
...
...
@@ -21,7 +21,7 @@ class YHActivityModel: YHBaseModel {
private
var
beginTimeForUI
:
String
=
""
func
getDateString
(
format
:
String
=
"MM
-
dd"
)
->
String
{
func
getDateString
(
format
:
String
=
"MM
/
dd"
)
->
String
{
if
beginTimeForUI
.
isEmpty
{
if
let
tttt
=
beginTime
.
double
()
{
...
...
@@ -55,7 +55,13 @@ class YHActivityModel: YHBaseModel {
let
date2
=
Date
(
timeIntervalSince1970
:
TimeInterval
(
tttt
))
let
titmeString2
=
dateFormatter
.
string
(
from
:
date2
)
if
titmeString
.
contains
(
titmeString2
)
{
beginTimeForUI
=
dateString
+
" "
+
weekdayName
+
" "
+
titmeString
}
else
{
beginTimeForUI
=
dateString
+
" "
+
weekdayName
+
" "
+
titmeString
+
"-"
+
titmeString2
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment