I’ve posted a new version of Blind Date (1.2.5). This is a bug fix. I discovered an issue involving dst - if the current dst and the dst of the supplied date in a given field were different, the time would shift an hour. Makes sense, but when you’re entering 9AM for a date in the future (or the past) and it consistently shifts to 8AM that’s not really the desired effect.
I’d recommend if you’re using Blind Date to upgrade to 1.2.5 as you’ll probably run into this issue at some point.
EDIT: get the new version in the 1st post.
hothousegraphix this might have been the issue you were having with time shifts - you might give this version a shot.
I’ve got an issue where SAEF Calendar plugin v1.1 is inputing dates into a field with 2 spaces between the date and time and EE is kicking it out stating it’s an incorrect format (manually removing the second space corrects the issue). I’ve got Blind Date v1.2.5 installed which from my understanding will force EE to ‘tolerate’ this.
Wierd thing is if I manually type in the date with two spaces it in between, it works. Since I cannot control the format at which the SAEF Calendar plug puts in the date (OK, I haven’t parsed the PHP yet), but just wondering if this sparks any ideas in anyone.
Hah - not really! “Have time” kind of takes on new meanings with family… It’s more like the twilight zone around here actually. You’d think the second one would mean less work getting ready wouldn’t you?
I think just doing a regex replacing multiple spaces with one should fix your specific problem and that is easy to put in. I really should be scrubbing the data using built-in EE functions and I’m wondering if that in itself might not fix the issue - I’m curious to find out.
leejb, just out of curiosity, what browser are you using? Have you tried using a different one - do you see the same error?
Here is a new version of the extension. Can you see if this fixes your problem? If it does I’ll post it as a new version to the original post… I haven’t worked on the error output formatting, but wanted to see if this helps your problem.
EDIT: Whoops - I had the regex wrong. Here’s one that should work:
Hi, I found a couple of undefined variables around line 138 in the ext. file:
$str = $REGX->xss_clean($str);
$recipients = preg_replace("/[;,:\s]+/", ',', $recipients);
I’ve initialised them thusly and everything seems to be working again..
$str = '';
$str = $REGX->xss_clean($str);
$recipients = '';
$recipients = preg_replace("/[;,:\s]+/", ',', $recipients);
Although I’m not sure what they’re there for which is a little worrying 😊
Also I’ve noticed that the top of this thread (no.1 result in google for me) still shows v1.2.5.
Just a heads up.. Cheers for the extension.. US dates are very confusing for us Africans.
Hi Luke - thanks for finding that. In all honesty those lines of code shouldn’t even be in there (I cut and paste them just for reference while I was adding some code for leejb to fix a problem he identified on the last page. I just forgot to erase them again). They don’t actually do anything at all - I’ve removed them.
Sorry for the sloppy coding. I’ve updated Blind Date to 1.2.7 and added it to the first post of this thread.
Glad you like the extension Luke 😊
Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.