Thread tagged as: Question, Problem

Perch Date/Time

Hello All

Im using the date field in a project for a countdown timer

my template has the following to output the date

<perch:content id="datetime" type="date" time="local" label="Date/Time" format="Y/m/d h:m:s" native="true" />

i have input a date with the time of 12:00 PM

the only issue i have noticed is perch is adding 4 seconds to the time when output so on page it appears as 12:04 PM

does anyone know why ?

Anthony Elleray

Anthony Elleray 2 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Are the dates in April? m is the month.

I think you want H:i:s or h:i:s for the time format.