Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Kirill Smelkov
Zope
Commits
f76cb714
Commit
f76cb714
authored
Oct 21, 2003
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Collector #951: DateTime(None) is now equal to DateTime()
parent
d980b46d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
doc/CHANGES.txt
doc/CHANGES.txt
+1
-1
lib/python/DateTime/DateTime.py
lib/python/DateTime/DateTime.py
+3
-5
No files found.
doc/CHANGES.txt
View file @
f76cb714
...
...
@@ -16,7 +16,7 @@ Zope Changes
Bugs fixed
- Collector #951: DateTime(None)
now raises a proper SyntaxError
- Collector #951: DateTime(None)
is equal to DateTime()
- Collector #1056: aq_acquire() ignored the default argument
...
...
lib/python/DateTime/DateTime.py
View file @
f76cb714
...
...
@@ -12,7 +12,7 @@
##############################################################################
"""Encapsulation of date/time values"""
__version__
=
'$Revision: 1.8
7
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.8
8
$'
[
11
:
-
2
]
import
os
,
re
,
math
,
DateTimeZone
...
...
@@ -632,16 +632,14 @@ class DateTime:
ac
=
len
(
args
)
millisecs
=
None
if
ac
and
args
[
0
]
==
None
:
raise
self
.
SyntaxError
,
None
elif
ac
==
10
:
if
ac
==
10
:
# Internal format called only by DateTime
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
=
args
elif
ac
==
11
:
# Internal format that includes milliseconds.
yr
,
mo
,
dy
,
hr
,
mn
,
sc
,
tz
,
t
,
d
,
s
,
millisecs
=
args
elif
not
args
:
elif
not
args
or
(
ac
and
args
[
0
]
==
None
)
:
# Current time, to be displayed in local timezone
t
=
time
()
lt
=
safelocaltime
(
t
)
...
...
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