Welcome, Guest
Username Password: Remember me

Trouble with dates
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Trouble with dates

Trouble with dates 09 Oct 2008 10:40 #301

Sorry if this is a double post....it does not look like my last one went through.

I am having trouble with study dates. I entered 10/5/08 for a sermon that I posted and when I look at the sermon in the front end or in the admin list it shows up as 10/4/08.

This seems to be a time parsing issue, because when I add 12:00:00 to the date field then the date shows up properly.

Re:Trouble with dates 09 Oct 2008 15:32 #302

  • Tom
  • OFFLINE
  • Administrator
  • Posts: 860
Hi Eric:

This has come up before. It appears to be a function of the time you enter the study as it relates to the time on the server that hosts your page. We use the Joomla calendar function and so the date returned comes from that. I like your solution of putting in the time. If that works I'd suggest keep doing it.

Tom
"You shall know the truth and the truth shall set you free." JC

Re:Trouble with dates 03 Nov 2008 20:37 #348

I am having the same problem and I did not want to have to remember to add 12:00 or teach others to do it.

I found 4 locations that had
JText::_('DATE_FORMAT_LC3'));
and I added '$offset' So the line looks like
JText::_('DATE_FORMAT_LC3'), '$offset');
I got '$offset' from the time zone variable in configuration.php.

Locations
Component

  • Line 93 of default.php in /administrator/components/com_biblestudy/views/studieslist/tmpl/


  • Line 39 of default.php in
    /administrator/components/com_biblestudy/views/episodelist/tmpl/


  • Line 556 of default.php in
    /components/com_biblestudy/views/studydetails/tmpl/


  • Module

  • Line 124 of _study.php in
    /modules/mod_biblestudy/tmpl/





  • My host uses UTC for their servers. I have tested at (-8) Pacific and (+2) Jerusalem with study times from 00:00:00 to 23:59:59 and all areas are working correctly now.



    I hope this helps.
    Jesus Loves You.
    Nick F

    Re:Trouble with dates 04 Nov 2008 09:04 #349

    • Tom
    • OFFLINE
    • Administrator
    • Posts: 860
    Great catch, Nick. I have made the changes to the code and this will be reflected in version 6.0.11, due out in a few weeks.

    "As each joint supplies"

    Tom
    "You shall know the truth and the truth shall set you free." JC
    • Page:
    • 1
    Moderators: Darren Vandermyde, Kyle
    Time to create page: 0.78 seconds