Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
asciidoc3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
asciidoc3
asciidoc3
Commits
5450e1a7
Commit
5450e1a7
authored
Jan 21, 2019
by
admuc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor bugfix
parent
4601a0e6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
asciidoc3.py
asciidoc3.py
+8
-5
No files found.
asciidoc3.py
View file @
5450e1a7
...
...
@@ -1587,11 +1587,14 @@ def time_str(t):
else
:
result
=
s
+
' '
+
time
.
tzname
[
0
]
# Attempt to convert the localtime to the output encoding.
try
:
result
=
bytes
(
result
,
'utf8'
)
result
=
result
.
decode
(
getdefaultlocale
()[
1
])
except
Exception
:
pass
# ... hoping that it will go anywhere
# but only if OS != Windows, see
# https://asciidoc3.org/blog/minor-bug-already-fixed-asciidoc3-303.html
if
not
sys
.
platform
.
lower
()
.
startswith
(
'win'
):
try
:
result
=
bytes
(
result
,
'utf8'
)
result
=
result
.
decode
(
getdefaultlocale
()[
1
])
except
Exception
:
pass
# ... hoping that it will go anywhere
return
result
def
date_str
(
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