|
Start & end hour bug fix [SOLVED] 11 Months, 2 Weeks ago
|
Karma: 0
|
Due to a bug I wasn't able to work with the start and end hour normally, after searching the code I found out that in administrator/components/com_artbannerplus/controller.php is a small mistake.
On line 555-558 you will find:
| Code: |
$form->set('publish_up_date', JHTML::_('date', $banner->publish_up_date, '%Y-%m-%d'));
$form->set('publish_down_date', JHTML::_('date', $banner->publish_down_date, '%Y-%m-%d'));
$form->set('publish_up_time', JHTML::_('date', $banner->publish_up_date, '%H:%M:%S'));
$form->set('publish_down_time', JHTML::_('date', $banner->publish_down_date, '%H:%M:%S'));
|
change this into:
| Code: |
$form->set('publish_up_date', JHTML::_('date', $banner->publish_up_date, '%Y-%m-%d'));
$form->set('publish_down_date', JHTML::_('date', $banner->publish_down_date, '%Y-%m-%d'));
$form->set('publish_up_time', JHTML::_('date', $banner->publish_up_time, '%H:%M:%S'));
$form->set('publish_down_time', JHTML::_('date', $banner->publish_down_time, '%H:%M:%S'));
|
|
|
|
Logged
|
|
|
Last Edit: 2009/09/03 21:55 By Mackelito.
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Start & end hour bug fix 11 Months, 1 Week ago
|
Karma: 0
|
|
Hi-
I am finding a problem also, not sure if it is the same as sanderpotjer described above, I made the change as he said but it still doesnt fix the problem.
Every time I open the edit banner page, you see start hour 1:00 end hour 1:00- when i close/save on this page, it deletes the banner because it thinks the time has completed.
Every time I open a clients page, I have to go and delete these 2 times because I want the banners to run continuosly from a start date to an end date and not a start/end time.
Any way to correct this problem?
|
|
demitra (User)
Fresh Boarder
Posts: 8
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Start & end hour bug fix 11 Months, 1 Week ago
|
Karma: 0
|
|
I think this had to do with the correction of the server time in your Joomla installation. If you go to global configuration -> tab server you will find time zone settings. Set it to one hour earlier and the time will display correct on opening a banner.
But I agree with you that this is a point that should be fixed as-well.
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Start & end hour bug fix 11 Months, 1 Week ago
|
Karma: 0
|
|
haha! Thank you!!! That has been driving me crazy for the last month!!!!!!!!! Having to delete those times every time i opened the damn edit banner page, thank you, that worked nicely!!!
|
|
demitra (User)
Fresh Boarder
Posts: 8
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Start & end hour bug fix 11 Months, 1 Week ago
|
Karma: 0
|
|
Great, good to hear it solved your problem!
|
|
|
Logged
|
|
|
The administrator has disabled public write access.
|
|
|
Re:Start & end hour bug fix 11 Months ago
|
Karma: 3
|
|
Just wanted to thank you for this bug fix.. there will be a new version out soon where this is fixed!
I added 2 months to your account as a thank you...
|
|
|
Logged
|
|
|
Keeps getting better and better!
|
|
|
The administrator has disabled public write access.
|
|
|