Skip Navigation

[Resolved] Time on whole hour showing only one 0

This support ticket is created 6 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 6 years, 7 months ago.

Assisted by: Luo Yang.

Author
Posts
#905292

I am trying to: dislpay times for a schedule of events

Link to a page where the issue can be seen:
hidden link

I expected to see:
12:00pm

Instead, I got:

12:0pm

Is this a PHP setting or a setting in Toolset?

#905340

Hello,

How do you setup the time of for schedule of events? With a custom date field created with Types plugin?
If it is, you can setup the time format of Types shortcode, for example:
[types field="my-date" format="g:i A"][/types]

See our document:

custom Date field:
https://toolset.com/documentation/customizing-sites-using-php/functions/#date

Customizing the Time and Date
https://codex.wordpress.org/Formatting_Date_and_Time