Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

24 hour subscription and timezone issue

  • austega
  • austega
  • OFFLINE
  • Posts: 94
  • Thanks: 0
  • Karma: 1
11 years 2 months ago - 11 years 2 months ago #233066 by austega
My client is using J2.5.14, CB 1.9, CBS 3.0.

We are based in Sydney Australia but use a hosting server in mid US. The Joomla Global Config | Server | Timezone is set to Sydney.

They are testing a 24 hour subscription, and find that a if such a subscriber logs in immediately after registration they see an expiry date/time of ten hours after the expected 24 hours. In the attached example the user registered at 13.35 on 2 Sep Sydney time and the Expiry Date/Time on the Memberships/Subscriptions tab shows 23.35 on 3 Sep. This incorrect time appears to indicate time in Sydney when the UTC reaches 13.35.


The backend record of the basket payment shows an incorrect time (10 hours later than Sydney time!).



The Status/Settings tab correctly shows the correct Online Member Since value.



The problem seems to be that the Expiry Time on the Subscriptions tab does not appropriately reflect the Sydney timezone offset. Changing the user time zone from Default to Sydney did not change anything.

The site was migrated from J1.5, and it from J1.0 if this is relevant. I note that in System Info | PHP are the following two entries:



Can provide login credentials for test site if required. Probably some setting at my or host end... :blush:
Attachments:
Last edit: 11 years 2 months ago by austega.

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48466
  • Thanks: 8280
  • Karma: 1443
11 years 2 months ago #233109 by krileon
Replied by krileon on topic 24 hour subscription and timezone issue
This is a known issue. The offset throws off the expiration calculation. They shouldn't be actually expired though as from what I can gather it's purely cosmetic. We've a bug ticket in place to fix for next release. Only workaround that I am aware of is to not use an offset and work off UTC time. CBSubs stores all its dates in UTC then applies offset on display. So subscription duration is always UTC based. You can check the UTC datetime of a subscription within CBSubs > Subscriptions then click the # under the ID column.


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.
The following user(s) said Thank You: austega

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

Moderators: beatnantkrileon
Powered by Kunena Forum