Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
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
nexedi
converse.js
Commits
d0a6fd1f
Commit
d0a6fd1f
authored
Oct 30, 2015
by
Michal Čihař
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use timezone support from Django
Issue #892 Signed-off-by:
Michal Čihař
<
michal@cihar.com
>
parent
2fa80706
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
weblate/trans/models/translation.py
weblate/trans/models/translation.py
+5
-5
No files found.
weblate/trans/models/translation.py
View file @
d0a6fd1f
...
...
@@ -30,7 +30,7 @@ from django.core.urlresolvers import reverse
import
os
import
codecs
from
translate.storage
import
poheader
from
datetime
import
datetime
,
timedelta
from
datetime
import
timedelta
from
weblate
import
appsettings
from
weblate.lang.models
import
Language
...
...
@@ -874,9 +874,9 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
author
=
get_author_name
(
user
)
# Update po file header
po_revision_date
=
(
datetime
.
now
().
strftime
(
'%Y-%m-%d %H:%M'
)
+
poheader
.
tzstring
()
)
now
=
timezone
.
now
()
if
not
timezone
.
is_aware
(
now
):
now
=
timezone
.
make_aware
(
now
)
# Prepare headers to update
headers
=
{
...
...
@@ -884,7 +884,7 @@ class Translation(models.Model, URLMixin, PercentMixin, LoggerMixin):
'last_translator'
:
author
,
'plural_forms'
:
self
.
language
.
get_plural_form
(),
'language'
:
self
.
language_code
,
'PO_Revision_Date'
:
po_revision_date
,
'PO_Revision_Date'
:
now
.
strftime
(
'%Y-%m-%d %H:%M%z'
)
,
}
# Optionally store language team with link to website
...
...
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