flack

Results 77 comments of flack

Hi! I'm not exactly sure what it is you want to show, could you give a more concrete example? The thing about showing a text like "all day" is also...

Ok, thx, I think I get it now. What would ```php echo $ranger->format('2023-04-01 00:00', '2023-04-02 23:59'); ``` look like? Would that be `Apr 1, 2023, 12:00 AM – Apr 2,...

ok, so roughly speaking, the code would look something like this: ```php function allday($start, $end) { $ranger = new Ranger('en_US'); $ranger->setTimeType(IntlDateFormatter::MEDIUM); $suffix = ''; if (str_ends_with($start, ' 00:00') && str_ends_with($end,...

Any news on solving this? It's still happening on production for us, so I have to hack the deployed Give code to make the backend useable again

@JasonTheAdams thanks, I added this to our code. Fingers crossed that we can delete it soon! :-)

@JasonTheAdams did you test this code? Because I've added it on our site, and now I can't create any donations anymore. The `strtotime($data['post_date']) >= strtotime('+1 second')` is always true, then...

P.S.: Just a guess: We're in GMT+1 timezone, probably the check is always true because of that? but even if I change to `strtotime($data['post_date_gmt']) >= strtotime('+1 second')`, `$oldPost` may be...

@JasonTheAdams yeah, no worries, we didn't apply to production right away, it was caught on the staging server, so no actual users were affected :-) I'll try your suggestions tomorrow,...

@JasonTheAdams so the version that works in principle for me looks like this: ```php add_filter('wp_insert_post_data', static function(array $data) { if ($data['post_type'] === 'give_payment') { // Check if $data date is...

it looks like the min.js is stuck at version 1.8.0, so it's missing a few commits. So as a workaround, you can probably just minify slick.js yourself