CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • CiviEvents Joomla Module with J2.5.x
Pages: [1]

Author Topic: CiviEvents Joomla Module with J2.5.x  (Read 1084 times)

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
CiviEvents Joomla Module with J2.5.x
January 02, 2014, 02:05:16 pm
The CiviEvents module appears to be subtracting a day from the event start and end dates when the event starts or ends at midnight (12:00AM). Any ideas of now to fix this?

Thanks in advance.

We're on J2.5.17 and CiviCRM 4.4.1.


lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: CiviEvents Joomla Module with J2.5.x
January 02, 2014, 07:16:52 pm
are you using the most recent version: https://github.com/lcdservices/CiviEvent-Joomla-Module

just want to make sure, before I dig into the code.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Re: CiviEvents Joomla Module with J2.5.x
January 03, 2014, 07:15:56 am
Yes, we are using the most current version.

conductorchris

  • I post frequently
  • ***
  • Posts: 167
  • Karma: 9
    • Vermont Rail Action Network
  • CiviCRM version: 4.5.0
  • CMS version: Joomla 3.2.7
  • MySQL version: 5.5.32
  • PHP version: 5.3.26
Re: CiviEvents Joomla Module with J2.5.x
January 03, 2014, 12:11:55 pm
In the meantime, you could start events at 12:01 am?

Actually, it occurs to me that the extension is technically correct -- midnight belongs to the day just ending while the new day doesn't begin at midnight, but one fraction of a second after.  Of course, this is far too precise for ordinary practice.

I suppose it is this sort of thing that drives people off to military time.
« Last Edit: January 03, 2014, 12:19:56 pm by conductorchris »
Thanks to those who help create and enhance civiCRM!

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: CiviEvents Joomla Module with J2.5.x
January 04, 2014, 07:42:22 am
I believe conductorchris is correct. I reviewed the code briefly and believe it is accurately handling the dates. we have no choice but be precise about when the day starts/ends.

however -- can you give me a bit more specifics with your testing data so I can confirm.

- what parameters are you using in the module, specifically if you're using the default selection method or specific date ranges
- what your event start/end dates are for the problem event(s)
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Re: CiviEvents Joomla Module with J2.5.x
January 06, 2014, 12:10:20 pm
If I set the times to 12:05 am, then the dates are still off by a day (earlier). If I set the times to say 7 am and 11 pm, all is correct.

Attached is a screenshot of my settings in the module.

--H

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: CiviEvents Joomla Module with J2.5.x
January 06, 2014, 12:15:47 pm
sounds to me like the issue may be your server's timezone setting. if that's not set correctly, the dates won't be offset correctly.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

HarryJ

  • I’m new here
  • *
  • Posts: 29
  • Karma: 1
  • CiviCRM version: 4.4.9
  • CMS version: Joomla 2.5.27
  • MySQL version: 5.1.70
  • PHP version: 5.3.16
Re: CiviEvents Joomla Module with J2.5.x
January 06, 2014, 02:53:31 pm
First checked the server time using the command line. It is set to EST.

The Joomla time was wrong as it was set to Central time, but changing it to the Eastern Time Zone did not make a difference in the dates displayed in the CiviEvent module.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Joomla Extensions (Moderator: lcdweb) »
  • CiviEvents Joomla Module with J2.5.x

This forum was archived on 2017-11-26.