Closed (fixed)
Project:
OpenChurch
Version:
7.x-1.10-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Anonymous (not verified)
Created:
19 May 2012 at 06:26 UTC
Updated:
6 Feb 2021 at 23:18 UTC
Jump to comment: Most recent
Comments
Comment #1
drupalninja99 commentedDid you install this as 1.10-alpha1 or did you install it as an earlier version? I thought the bug was a few versions back where we had a php field rendering the short date, then we converted the view to use a date field instead. It's possible if you installed the earlier version, upgraded and didn't revert the view that it's still using the old view. Is that the case or was this installed as 1.10-alpha1?
Comment #2
Anonymous (not verified) commentedThanks for replying.
I installed the previous version and then upgraded to 1.10-alpha1, but it doesn't seem to have changed the Events view. I even tried clicking "revert" on the Events View just now, but it still has the short date being rendered by the following PHP:
Any advice? I suppose I could just go in and manually replace it with a date field.
Comment #3
Code Monkey commentedDo you have an custom date format created? You will need to create a new date format. You can get to that under the Formats tab (admin/config/regional/date-time/formats) located on the Date and Time configuration page (admin/config/regional/date-time). The format should be "'m.d.y". This would be the same format as shown on the Events view.
We now need to "Add date type", which is found on the Date and Time configuration page. In item #10 of issue #1463464: Removing dependency of views_php module we came to the decision to name this format "openchurch_short_date". You will want to select the previously saved date format.
Once this new date type / format is created, you can modify the Events view to remove the PHP field and add another field for When and use this new date type for the format.
It may be easier to create a new installation with an updated version. You might be able to export the view from the newer version back into your current version.
If you need additional information on what else to do, let me know and I'll try to scrounge up the rest of the instructions.
Comment #4
Anonymous (not verified) commentedThat worked perfectly, thank you so much!
Comment #5
Code Monkey commented