1 (edited by MarkL 2018-04-15 14:10:24)

Topic: Changing standard event times

When a user adds an event in my calender, the pop-up panel that shows the times starts at 06.00 and ends at 17.45, which means that evening times have to be entered manually. My organization usually has evening events, so I would like to be able to show the evening times as standard -- and maybe remove the morning times, as they aren't necessary. Can anyone point me to the file or MySQLi database entry that I need to change? I'm sure it's there somewhere, but so far I have not been able to locate it.

Edit. I have now found the appropriate place to change this in the Calendar settings. My only issue now is that I can't seem to to save the settings as the (perfectly valid) email address I used for the calendar is being rejected.

Re: Changing standard event times

Hello Mark,

I think what you are looking for is in the View section of Settings.

Under Administration select Settings. Scroll down to Views. In the "Start and end hour in Day/Week view:" fields for example enter 17 in the first box and 24 in the second box.

Now when they select the time they can select evening time slots between 17:00 and midnight. If you have events in the afternoon then you could enter 12 instead of the 17 first box.

Regards,
Dan

Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html

Re: Changing standard event times

Thanks, Dan. I hadn't seen your reply before editing my first post. I had already found what you describe, but I now have this email issue.

Re: Changing standard event times

Mark, I would expect it is in the code of what is allowed. For example if it had me-email@gmailcom and the - isn't a permitted character. A slight code change might be all that is required.

To help Roel out can you enter an example of the email address that is being rejected as invalid? Don't enter the actual email address but a fictitious one with the same format / style.

Regards,
Dan

Some own motorcycles, others ride them.

Find great LuxCal examples by Schwartz at http://www.calendarforum.dk/index.html

Re: Changing standard event times

Thank you, Dan. It seems that a hyphen in the email address was the problem. I have two such email addresses and neither of them seemed to work. Fortunately I have another address that doesn't have a hyphen in it. smile

Many thanks again for your help

Re: Changing standard event times

Hi Mark,
I would like to have your email address that is not accepted, could you send it to me via the Contact Us page please.
I'm about to release calendar version 4.6.1 and would like to fix this problem before.

Thanks,
Roel

Re: Changing standard event times

No problem, Roel. But I have sent you an email, as more or less the same thing happned when I tried to send a message via your Contact Us page.

Re: Changing standard event times

Thanks Mark,
I've solved the problem for the calendar as well as for the Contact Us page. Both were using the same erroneous validation pattern (regex).
If you upload the two files I've sent you by email, the problem will be solved.

Roel

Re: Changing standard event times

Thank you, Roel. I would never have spotted that regex pattern.

The admin email address with a hyphen that I wanted to use in the first place now works fine.