[ckan-changes] [ckan/ckan] 88218c: [#2494] New option to change the timezone of displ...
GitHub
noreply at github.com
Thu Sep 3 19:38:36 UTC 2015
Branch: refs/heads/master
Home: https://github.com/ckan/ckan
Commit: 88218c2944b34a8d0ef84001ad10a92106cc9076
https://github.com/ckan/ckan/commit/88218c2944b34a8d0ef84001ad10a92106cc9076
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-06-30 (Tue, 30 Jun 2015)
Changed paths:
M ckan/lib/formatters.py
M doc/maintaining/configuration.rst
M requirements.txt
Log Message:
-----------
[#2494] New option to change the timezone of displayed datetimes
Commit: ec775eda559318ca03976a371583224c1bab9d92
https://github.com/ckan/ckan/commit/ec775eda559318ca03976a371583224c1bab9d92
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-06-30 (Tue, 30 Jun 2015)
Changed paths:
M ckan/config/routing.py
M ckan/controllers/util.py
Log Message:
-----------
[#2494] Add a new API endpoint to set timezone offset
Commit: 58abf6899e913d0a7e31f65aae249ee6f3db5b0c
https://github.com/ckan/ckan/commit/58abf6899e913d0a7e31f65aae249ee6f3db5b0c
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-06-30 (Tue, 30 Jun 2015)
Changed paths:
M ckan/public/base/javascript/main.js
Log Message:
-----------
[#2494] Make sure the new timezone endpoint gets called in JavaScript
Commit: dee22ac0e9dc5211fbfe17d888501054e47c9f69
https://github.com/ckan/ckan/commit/dee22ac0e9dc5211fbfe17d888501054e47c9f69
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-06-30 (Tue, 30 Jun 2015)
Changed paths:
M ckan/lib/formatters.py
M ckan/lib/helpers.py
Log Message:
-----------
[#2494] Displayed all datetimes with the users utc offset
- This is either saved in the beaker session
- otherwise it defaults to zero
- The display of a full date also shows the currently used timezone
incl. the offset (e.g. UTC+2)
Commit: c622d2367046938d5c26cb28f7536dcfaf7c90f6
https://github.com/ckan/ckan/commit/c622d2367046938d5c26cb28f7536dcfaf7c90f6
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/controllers/util.py
M ckan/lib/helpers.py
Log Message:
-----------
[#2494] Validate the offset before saving it in the session
Commit: 53ed142963b02c59de8bf71c5a764f9903bc9e49
https://github.com/ckan/ckan/commit/53ed142963b02c59de8bf71c5a764f9903bc9e49
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/controllers/test_util.py
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
[#2494] Add timzone tests for util controller and helper
Commit: b27e31e3ba423eaf690b7d6c3b482fc67601acb7
https://github.com/ckan/ckan/commit/b27e31e3ba423eaf690b7d6c3b482fc67601acb7
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/controllers/util.py
Log Message:
-----------
[#2494] Make PEP-8 happy
Commit: ae10c834f48799085dae131fd113e90444d6b3de
https://github.com/ckan/ckan/commit/ae10c834f48799085dae131fd113e90444d6b3de
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/controllers/test_util.py
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
[#2494] Fix broken tests
Commit: 4aa691a44fb621c97b75df6a56f40a655edde144
https://github.com/ckan/ckan/commit/4aa691a44fb621c97b75df6a56f40a655edde144
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
Try to fix the session-based test
Commit: 2863a05ed9c7da1a221e6faafeeb376c21a62301
https://github.com/ckan/ckan/commit/2863a05ed9c7da1a221e6faafeeb376c21a62301
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/controllers/test_util.py
Log Message:
-----------
Import assert_true in test
Commit: 013040bb384e118ea9d84a84881bdd93a2098bcd
https://github.com/ckan/ckan/commit/013040bb384e118ea9d84a84881bdd93a2098bcd
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/controllers/test_util.py
Log Message:
-----------
Replace assert_true with assert_in
Commit: d8d0f79f6d02d2f70421ae11e35b4f8ca01c8e81
https://github.com/ckan/ckan/commit/d8d0f79f6d02d2f70421ae11e35b4f8ca01c8e81
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-01 (Wed, 01 Jul 2015)
Changed paths:
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
Add PylonsTestCase to test session-based behaviour
Commit: 8796897b8fe021c339eaf108fb9a60ca29b08f77
https://github.com/ckan/ckan/commit/8796897b8fe021c339eaf108fb9a60ca29b08f77
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M requirements.in
Log Message:
-----------
Add pytz requirement
Commit: 75db95755a19366870ceb6cf6a43a58f86c0cf71
https://github.com/ckan/ckan/commit/75db95755a19366870ceb6cf6a43a58f86c0cf71
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/config/routing.py
M ckan/controllers/util.py
M ckan/lib/formatters.py
M ckan/lib/helpers.py
M ckan/public/base/javascript/main.js
M ckan/tests/controllers/test_util.py
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
Remove timezone api
Commit: 38e4f5071f0eefc2574b5d6462a093f04305ab60
https://github.com/ckan/ckan/commit/38e4f5071f0eefc2574b5d6462a093f04305ab60
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
Log Message:
-----------
[#2494] Fix comment of timezone format
Commit: 5d3f42d3f788820024d2f653165374accd9a8128
https://github.com/ckan/ckan/commit/5d3f42d3f788820024d2f653165374accd9a8128
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
M ckan/lib/helpers.py
Log Message:
-----------
[#2494] Move timezone conversion to _datestamp_to_datetime()
Commit: 7d1d391def7d61fe08d1824ceaa3e0e230f8d21b
https://github.com/ckan/ckan/commit/7d1d391def7d61fe08d1824ceaa3e0e230f8d21b
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
Log Message:
-----------
[#2494] Only set UTC if datetime has no timezone info yet
Commit: 514444ffe077071c9b6925288ab8120d26948ea1
https://github.com/ckan/ckan/commit/514444ffe077071c9b6925288ab8120d26948ea1
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/public/base/javascript/main.js
A ckan/public/base/vendor/moment.js
M ckan/public/base/vendor/resource.config
M ckan/templates/package/snippets/additional_info.html
Log Message:
-----------
[#2494] Add moment.js and load dates in browser timezone
Commit: a164ac7ff32642f32bf780462727dacb2953a3bb
https://github.com/ckan/ckan/commit/a164ac7ff32642f32bf780462727dacb2953a3bb
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/public/base/css/main.css
M ckan/public/base/javascript/main.js
Log Message:
-----------
[#2494] Hide dates when JavaScript is active to prevent flickering
Commit: dabc0c84866eca607d4b0ab22dbd5b570a87c616
https://github.com/ckan/ckan/commit/dabc0c84866eca607d4b0ab22dbd5b570a87c616
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
Log Message:
-----------
[#2494] Make sure only 'aware' date objects are compared
Commit: 7989b55f41e8446f36cb407016c1ba28c02defbd
https://github.com/ckan/ckan/commit/7989b55f41e8446f36cb407016c1ba28c02defbd
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
Log Message:
-----------
[#2494] Remove unused imports
Commit: c01c954c568e7dba73430c1f64e2ca63453f6416
https://github.com/ckan/ckan/commit/c01c954c568e7dba73430c1f64e2ca63453f6416
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/lib/formatters.py
M ckan/public/base/javascript/main.js
A ckan/public/base/vendor/moment-with-locales.js
R ckan/public/base/vendor/moment.js
M ckan/public/base/vendor/resource.config
M ckan/tests/legacy/lib/test_helpers.py
Log Message:
-----------
[#2494] Cleanup code
- Rename moment to make clear it's moment+locales
- Use attribute name for jquery.data()
- Fix broken test
Commit: 45ac16ef4856cff17578e2810629db2a5b1ad114
https://github.com/ckan/ckan/commit/45ac16ef4856cff17578e2810629db2a5b1ad114
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/public/base/javascript/main.js
Log Message:
-----------
[#2494] Only replace valid dates with moment.js
Commit: bdfb3983cf1902d7288f704776cec8245b8a29aa
https://github.com/ckan/ckan/commit/bdfb3983cf1902d7288f704776cec8245b8a29aa
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-09 (Thu, 09 Jul 2015)
Changed paths:
M ckan/config/deployment.ini_tmpl
M ckan/lib/helpers.py
M requirements.in
M requirements.txt
Log Message:
-----------
[#2494] Add support for 'server' timezone
This special timezone uses the local timezone of the server.
In order to do this, the tzlocal module is needed.
Commit: 67cee127017a2683caaf5f80e647e23e9c88d04d
https://github.com/ckan/ckan/commit/67cee127017a2683caaf5f80e647e23e9c88d04d
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-10 (Fri, 10 Jul 2015)
Changed paths:
M ckan/public/base/css/main.css
M ckan/public/base/javascript/main.js
M ckan/templates/package/snippets/additional_info.html
A ckan/templates/snippets/local_friendly_datetime.html
Log Message:
-----------
[#2494] Add snippet for local friendly datetime
Commit: 2e1287cfc9ce310ab44e827d7d7956d8b9449f81
https://github.com/ckan/ckan/commit/2e1287cfc9ce310ab44e827d7d7956d8b9449f81
Author: Stefan Oderbolz <stefan.oderbolz at liip.ch>
Date: 2015-07-10 (Fri, 10 Jul 2015)
Changed paths:
M ckan/config/deployment.ini_tmpl
M ckan/lib/helpers.py
M doc/maintaining/configuration.rst
Log Message:
-----------
[#2494] Rename ckan.timezone to ckan.display_timezone
Commit: 9e16366fb1363fc4d464d9f53b7821125525e258
https://github.com/ckan/ckan/commit/9e16366fb1363fc4d464d9f53b7821125525e258
Author: Ian Ward <ian at excess.org>
Date: 2015-09-03 (Thu, 03 Sep 2015)
Changed paths:
M ckan/config/deployment.ini_tmpl
M ckan/lib/formatters.py
M ckan/lib/helpers.py
M ckan/public/base/css/main.css
M ckan/public/base/javascript/main.js
A ckan/public/base/vendor/moment-with-locales.js
M ckan/public/base/vendor/resource.config
M ckan/templates/package/snippets/additional_info.html
A ckan/templates/snippets/local_friendly_datetime.html
M ckan/tests/legacy/lib/test_helpers.py
M doc/maintaining/configuration.rst
M requirements.in
M requirements.txt
Log Message:
-----------
Merge pull request #2505 from metaodi/2494-timezone-setting
[#2494] New option to change the timezone of displayed datetimes
Compare: https://github.com/ckan/ckan/compare/c35798928bcc...9e16366fb136
More information about the ckan-changes
mailing list