I am working on a system to manage a list of events. Each event is defined by a title, a description, a date and a venue. I have problems to have the dates working properly. Indeed, my zap form asks the user adding the event for a year, a month, a day and an hour but I want all this information to be converted into a timestamp.
<br><br>This is how I am trying to do it - without success - for the moment:<br><br>(:zapform key=AddEvent:)<br>(:zap datapage="Events.Event-{(ftime %s)}" AddEvent:)<br>(:input text EventYear "{$thisyear}":)
<br>(:zap EventDate={(ftime fmt='%s' when='{$EventYear}')} AddEvent:)<br>(:zap savedata="EventDate" AddEvent:)<br>(:input submit:)<br>(:zapend:)<br><br><br>Any idea of how I can make it work?