Needs work
Project:
Advanced Poll
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Apr 2016 at 11:06 UTC
Updated:
11 Jul 2016 at 10:31 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mrdalesmith commentedCreated a patch that adds a custom helper to pull date data from the advpoll node taking account of any timezone stored in the field data.
Code uses a entity_metadata_wrapper to obtain language agnostic values from the node, which means a dependency on entity has to be added to the module. If this is acceptable, it may be worth updating all the code to use entity_metadata_wrappers instead of the current language workarounds.
Comment #3
mrdalesmith commentedComment #5
mrdalesmith commentedI don't think that fail is anything to do with the patch, although I'd be happy to rework if it turns out it is?
Comment #6
tripper54 commentedYar, weird, the tests run OK for me locally.
It might have been an issue with a dependant module as the tests failed to enable the required modules.
I re-rolled with the addition of your added entity api dependency in the test setup method.
We'll see how that goes.
Comment #7
tripper54 commentedComment #12
wylbur commentedUsing
Drupal 7.43
PHP 5.5.9
MySQL 5.5.49
Advanced Poll
Version : 7.x-3.0-alpha1+6-dev
Date : 2016-04-20
Applied patch successfully from the root of the Advanced Poll module directory.
When we schedule an opening date, the date/time was offest by the difference of our time zone to UTC. After patching module, the open date now matches displayed open date.
Did NOT mark this as RTBC, but I consider this review and tested.
Comment #13
tripper54 commentedtrying these tests again.
Comment #14
tripper54 commentedComment #19
tripper54 commented