Skip Navigation

[Resolved] Order by date AND Time not working. AM/PM not taken into account

This support ticket is created 5 years, 8 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 3 replies, has 2 voices.

Last updated by Scott 5 years, 7 months ago.

Assisted by: Christian Cox.

Author
Posts
#1083015
f51c25357b87e921b366b09f3471a7a6.png

I am trying to:
Order By Date AND Time
Link to a page where the issue can be seen:
hidden link
I expected to see:
11:00 am list before 3:00 pm
Instead, I got:
3:00 pm lists prior to 11:00 am As if its a number or military time, am should list before pm

#1083175

Hello, can you tell a bit more information?
- Is this the post publish date and time, or is it one custom date field, or is it a combination of multiple date and time fields?
- What shortcode or custom code is used to display the date and time? Please copy and paste it here for me to review.
- How is this list displayed - is it a View, or a WordPress Archive, a sidebar widget, etc.?
- If it's a View or WordPress Archive, please take a picture of the Query Filter configurations in the View editor screen or WordPress Archive editor screen in wp-admin.

#1091364
bb74b656129537904212b6d04546ed25.png
15839fb0870bc913958abde4278c6956.png
7bb5be2b2b52b8384087432db07edf73.png

Sorry for the delay, I must have missed an email :/

custom date field is what I'm using, ' Input date and time' option

I'm using a View, sort by date field

Images attached

#1091939

Christian!
I am such a dork....
Last year I realized this was military time, and put in a separate field to allow am/pm.

I am all set now.

I do however think that another time option would be awesome for future updates. Most civilians will get confused here on how to input and out put the times the way they want in the query...

Thanks for your help

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.