Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodbtools
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
zodbtools
Commits
bd9badf2
Commit
bd9badf2
authored
Jan 10, 2019
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tidrange proto: disable unsupported inputs
parent
025d4914
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
6 deletions
+20
-6
prototype/notes.md
prototype/notes.md
+10
-1
zodbtools/test/testdata/tidrange-formats.txt
zodbtools/test/testdata/tidrange-formats.txt
+10
-5
No files found.
prototype/notes.md
View file @
bd9badf2
...
@@ -43,3 +43,12 @@ ERROR timespec: Jun 6, 5AM expected time: 2009-06-06T05:00:00Z parsed time: 0000
...
@@ -43,3 +43,12 @@ ERROR timespec: Jun 6, 5AM expected time: 2009-06-06T05:00:00Z parsed time: 0000
ERROR timespec: 5AM Jun 6 expected time: 2009-06-06T05:00:00Z parsed time: 0000-06-01T00:00:05Z
ERROR timespec: 5AM Jun 6 expected time: 2009-06-06T05:00:00Z parsed time: 0000-06-01T00:00:05Z
```
```
# after disabling unsupported inputs
```
python prototype/proto.py
go run prototype/proto.go
```
no more errors reported.
zodbtools/test/testdata/tidrange-formats.txt
View file @
bd9badf2
...
@@ -31,13 +31,18 @@
...
@@ -31,13 +31,18 @@
# this input is "ambiguous"
# this input is "ambiguous"
# 2009-08-29T12:00:00Z 10am noon
# 2009-08-29T12:00:00Z 10am noon
2009-08-25T19:20:00Z last tuesday
# not supported by date parser
2009-07-05T00:00:00Z July 5th
# 2009-08-25T19:20:00Z last tuesday
# non consistent behavior ( go keep current hour:minutes - python use midnight )
# 2009-07-05T00:00:00Z July 5th
2009-06-05T00:00:00Z 06/05/2009
2009-06-05T00:00:00Z 06/05/2009
2009-05-06T00:00:00Z 06.05.2009
# parsed as month/day (at least for me ... it might depend on some locales ?)
#2009-05-06T00:00:00Z 06.05.2009
2009-06-06T05:00:00Z Jun 6, 5AM
# go parser is wrong on this one
2009-06-06T05:00:00Z 5AM Jun 6
# 2009-06-06T05:00:00Z Jun 6, 5AM
# go parser is wrong on this one
# 2009-06-06T05:00:00Z 5AM Jun 6
2009-06-07T06:00:00Z 6AM, June 7, 2009
2009-06-07T06:00:00Z 6AM, June 7, 2009
2008-12-01T00:00:00Z 2008-12-01
2008-12-01T00:00:00Z 2008-12-01
...
...
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