HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Small fix to run this on Windows (Invalid CRT Parameters error)

I realise it's probably not something people do for production perhaps, but it's handy for testing and there's a partial fix in there already anyway ;0

In class.format.php there is a fix for the strftime issues on Windows - lines 532-536

Problem is, that only fixes $Format - it also needs to fix $FullFormat - e.g.

  if (strpos($FullFormat, '%l') !== false)
      $FullFormat = str_replace('%l', ltrim(strftime('%I', $Timestamp), '0'), $FullFormat);
  if (strpos($FullFormat, '%e') !== false)
      $FullFormat = str_replace('%e', ltrim(strftime('%d', $Timestamp), '0'), $FullFormat);

Needs to go before current line 540

Hope that helps someone



Sign In or Register to comment.