Zoo Visitor
ExpressionEngine 2
Back to this add-on's main page
View Other Add-ons From Discontinued
Date Field Format Issue
General
TheoWirebox
|
Posted: 10 October 2012 09:38 AM |
|
|
|
Hi I have edited your profile template to include a date field called {member_birthday} . This is all outptuing great until I add the format attribute to the tag then the date all ways outputs 01/01/1970.
{exp:zoo_visitor:update_form return="members/profile/success" error_handling="inline" rules:member_home_tel="numeric" rules:member_mobile="numeric"} {member_birthday} {/exp:zoo_visitor:update_form}
outputs 1982-11-08 12:00 AM
{exp:zoo_visitor:update_form return="members/profile/success" error_handling="inline" rules:member_home_tel="numeric" rules:member_mobile="numeric"} {member_birthday format="%d/%m/%Y"} {/exp:zoo_visitor:update_form}
outputs 01/01/1970
|
|
|
ExpressionEngine Zoo
|
Posted: 10 October 2012 10:05 AM |
# 1
|
|
|
That won’t work in a regular Safecracker form either, try looking for a date formatting add-on, that will probably solve it
|
|
|
TheoWirebox
|
Posted: 10 October 2012 10:22 AM |
# 2
|
|
|
Thanks that’s fixed it I installed this plugin for reference http://devot-ee.com/add-ons/nice-date
|
|
|