date bug in bbb?

Bugs Reports and Useful Links

date bug in bbb?

Postby harald » Mon May 11, 2015 8:50 am

hello,

bbb works well but we can´t create webconferences with date 2015. thanks for support!

brgds
harald
Attachments
bbb_date_bug.jpg
bbb_date_bug.jpg (94.14 KiB) Viewed 1983 times
bbb_date_bug.zip
(71.12 KiB) Downloaded 120 times
User avatar
harald
 
Posts: 179
Joined: Thu Mar 21, 2013 7:34 pm

Re: date bug in bbb?

Postby y.sulistya » Tue May 12, 2015 7:09 am

Open the module_bbb.class.php file, find the line below [538]:
Code: Select all
$years = array();
for ($i = 2008; $i < 2015; $i++) {
   $years[$i] = $i;
}


Then try to change with:
Code: Select all
$current_year = date("Y");//get the current year
$past_year = date("Y") - 5;//limit the last 5 past year
$years = array();
for ($i = $past_year; $i <= $current_year; $i++) {
   $years[$i] = $i;
}
Blessings & Peace,
Yudi Sulistya

---
Database administrator & programmer at Faculty of Psychology • Airlangga University
Programmer at Cyber Campus • Airlangga University
Need personal help? contact me : yudi.sulistya[at]gmail.com
User avatar
y.sulistya
 
Posts: 717
Joined: Mon Apr 13, 2009 12:02 pm
Location: Surabaya, Indonesia

Re: date bug in bbb?

Postby harald » Tue May 12, 2015 7:54 am

dear yudi,

workes great! thank you for your support!

brgds
harald
User avatar
harald
 
Posts: 179
Joined: Thu Mar 21, 2013 7:34 pm

Re: date bug in bbb?

Postby y.sulistya » Tue May 12, 2015 10:10 am

Because schedule is in the future, so this is much better:
Code: Select all
$current_year = date("Y");//get the current year
$next_year = date("Y") + 5;//get the next 5 year
$years = array();
for ($i = $current_year; $i <= $next_year; $i++) {
   $years[$i] = $i;
}
Blessings & Peace,
Yudi Sulistya

---
Database administrator & programmer at Faculty of Psychology • Airlangga University
Programmer at Cyber Campus • Airlangga University
Need personal help? contact me : yudi.sulistya[at]gmail.com
User avatar
y.sulistya
 
Posts: 717
Joined: Mon Apr 13, 2009 12:02 pm
Location: Surabaya, Indonesia

Re: date bug in bbb?

Postby makriria » Wed May 13, 2015 9:01 am

Hello y.sulistya,

unfortunately this post had not come to my attention. I apply the fix now in order to be part of next release.

Thanks for your help
Michael Makrigiannakis
Software Engineer
makriria@efrontlearning.net
skype: makriria
User avatar
makriria
 
Posts: 939
Joined: Thu Oct 04, 2007 12:16 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 4 guests

cron