Skip Navigation

[Closed] Time not being stored correctly

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 1 year, 1 month ago.

Assigned support staff: Luo Yang.

Author
Posts
#2203751

The issue is that it seems like times are being stored (possibly as GMT while we are in BST) incorrectly.

A user enters a date and time (say the time is 09:00) in a post using a create post Toolset form.

When the post is edited in the backend or viewed in the front end, the hour shown is 08:00.

This issue seems to have started in the last two or three weeks.

I have checked that the timezone is set correctly in WordPress.

#2204595

Luo Yang
Supporter

Languages: English (English ) Chinese (Simplified) (简体中文 )

Timezone: Asia/Hong_Kong (GMT+08:00)

Hello,

I assume we are talking about custom date field created with Toolset Types plugin, if it is:
Yes, Toolset custom date field stores value in timestamp format, and the UNIX timestamp represents how much seconds past from unix-time epoch in GMT+0
How do you display custom date field value in backend and frontend?
With custom PHP codes or Types shortcode?

If it is Types shortcode, then the problem is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, and switch to WordPress default theme 2021, deactivate all custom PHP/JS code snippets, and test again

3) Also check if there is any PHP/JS error in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/

4) If the problem still persists, please provide database dump file(ZIP file) of your website, you can put the package files in your own google drive disk, share the link only, also point out the problem page URL and form URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

The topic ‘[Closed] Time not being stored correctly’ is closed to new replies.