Closed (works as designed)
Project:
Views Rules
Version:
7.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Sep 2016 at 07:28 UTC
Updated:
2 Nov 2016 at 11:25 UTC
Jump to comment: Most recent
Comments
Comment #2
hanno commentedComment #3
hanno commentedTested and when I create a custom global field and rewrite that to show the date as text, this text in this field is transfered to the rule. So this issue is related to deliver a date field.
Comment #4
hanno commentedIt turns out it returns an array with the date field. I used php action to extract the date information.
Comment #5
dsweeney0126 commentedWould you mind sharing the PHP action you used? Got the same issue here.
Much appreciated!
Comment #6
hanno commentedI added an 'Execute custom PHP code' action and in that action I added in
Enter PHP code without <?php ?> delimiters.:where author is an node-object with a date field 'field_work_period_start'. That node get saved at the end of the rule with a 'save entity' action. 'first_creation_date_start' and 'first_creation_date_end' are row variables delivered by the view (in my case using aggregation). As I needed to set the start and end date of the date field I used this. Note that I m not using time so not setting timezone.