Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
miniflux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
miniflux
Commits
bfb96d53
Commit
bfb96d53
authored
4 years ago
by
Frédéric Guillot
Browse files
Options
Downloads
Patches
Plain Diff
Add workaround for parsing an invalid date
parent
ad662507
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
reader/date/parser.go
+1
-0
1 addition, 0 deletions
reader/date/parser.go
reader/date/parser_test.go
+1
-0
1 addition, 0 deletions
reader/date/parser_test.go
with
2 additions
and
0 deletions
reader/date/parser.go
+
1
−
0
View file @
bfb96d53
...
...
@@ -156,6 +156,7 @@ var dateFormats = []string{
"2006-01-02T15:04:05 -0700"
,
"2006-01-02T15:04:05:00"
,
"2006-01-02T15:04:05"
,
"2006-01-02T15:04"
,
"2006-01-02 at 15:04:05"
,
"2006-01-02 15:04:05Z"
,
"2006-01-02 15:04:05 MST"
,
...
...
This diff is collapsed.
Click to expand it.
reader/date/parser_test.go
+
1
−
0
View file @
bfb96d53
...
...
@@ -132,6 +132,7 @@ func TestParseWeirdDateFormat(t *testing.T) {
"March 30 2020 07:02:38 PM"
,
"Mon, 30 Mar 2020 19:53 +0000"
,
"Mon, 03/30/2020 - 19:19"
,
"2018-12-12T12:12"
,
}
for
_
,
date
:=
range
dates
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment