Skip to content

Commit

Permalink
- Backport from master
Browse files Browse the repository at this point in the history
  • Loading branch information
Alessio Fabiani committed May 28, 2018
1 parent d43a389 commit e54eb92
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions geonode/client/templates/geoext/layers/layer_geoext_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -168,14 +168,14 @@

var zoomToData = function()
{
map.zoomToExtent(extent, true);
map.zoomToExtent(extent, false);
app.mapPanel.center = map.center;
app.mapPanel.zoom = map.zoom;
map.events.unregister('changebaselayer', null, zoomToData);
};
map.events.register('changebaselayer',null,zoomToData);
if(map.baseLayer){
map.zoomToExtent(extent, true);
map.zoomToExtent(extent, false);
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,14 +162,14 @@

var zoomToData = function()
{
map.zoomToExtent(extent, true);
map.zoomToExtent(extent, false);
app.mapPanel.center = map.center;
app.mapPanel.zoom = map.zoom;
map.events.unregister('changebaselayer', null, zoomToData);
};
map.events.register('changebaselayer',null,zoomToData);
if(map.baseLayer){
map.zoomToExtent(extent, true);
map.zoomToExtent(extent, false);
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion geonode/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@
GOOGLE_API_KEY = os.environ.get('GOOGLE_API_KEY', None)

# handle timestamps like 2017-05-30 16:04:00.719 UTC
if django.VERSION[0] == 1 and django.VERSION[1] >= 11:
if django.VERSION[0] == 1 and django.VERSION[1] >= 9:
_DATETIME_INPUT_FORMATS = ['%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f', '%Y-%m-%dT%H:%M:%S%Z']
else:
_DATETIME_INPUT_FORMATS = ('%Y-%m-%d %H:%M:%S.%f %Z', '%Y-%m-%dT%H:%M:%S.%f', '%Y-%m-%dT%H:%M:%S%Z')
Expand Down

0 comments on commit e54eb92

Please sign in to comment.