Skip to Content Skip to Menu

GJ: Problem with events time not showing the proper time set in events form

  • timstohr
  • timstohr
  • OFFLINE
  • Posts: 1091
  • Thanks: 56
  • Karma: 9
9 years 4 months ago #265754 by timstohr
Hey Kyle,

A user tried to set an event in a group in Saigon (Vietnam). He input 8.30 pm.

However, when finished, it showed 2.30 in the event.

When clicking on edit, I saw his inputted time of 8.30.

Joomla is set to Saigon time (the server is based in Germany though). What did I miss?

Thanks,

Tim

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48477
  • Thanks: 8281
  • Karma: 1443
9 years 4 months ago #265767 by krileon
GJ hasn't been upgraded for CB 2.x yet. So it's using its own internal API to try and handle UTC dates. The fixed GJ events integration was quickfixed with CB 2.x API to stop a fatal jQuery bug. There is likely an odd conflict between the two usages causing the offset to be wrong. This will all be fixed when I upgrade GJ. The way our date usage works, or should work, is you select a datetime in local time then it stores it as UTC. Then on display it's offset to local based off who is viewing it. Looks like that's working in reverse for GJ events.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum