Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ckanext-odsh
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
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
Open-Data
ckanext-odsh
Commits
f450028d
Commit
f450028d
authored
6 years ago
by
anonymous
Browse files
Options
Downloads
Patches
Plain Diff
fix date format
parent
a4e92074
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
ckanext/odsh/helpers.py
+2
-2
2 additions, 2 deletions
ckanext/odsh/helpers.py
with
2 additions
and
2 deletions
ckanext/odsh/helpers.py
+
2
−
2
View file @
f450028d
...
@@ -96,9 +96,9 @@ def odsh_get_spatial_text(pkg_dict):
...
@@ -96,9 +96,9 @@ def odsh_get_spatial_text(pkg_dict):
return
spatial
return
spatial
return
None
return
None
def
odsh_render_datetime
(
datetime_
,
date_format
=
'
%d.%m.%Y
'
):
def
odsh_render_datetime
(
datetime_
,
date_format
=
'
{0.day:02d}.{0.month:02d}.{0.year:4d}
'
):
dt
=
parser
.
parse
(
datetime_
)
dt
=
parser
.
parse
(
datetime_
)
return
d
t
.
strftime
(
date_
format
)
return
d
ate_format
.
format
(
dt
)
def
odsh_upload_known_formats
():
def
odsh_upload_known_formats
():
value
=
config
.
get
(
'
ckanext.odsh.upload_formats
'
,
[])
value
=
config
.
get
(
'
ckanext.odsh.upload_formats
'
,
[])
...
...
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