PHP Classes

strftime DEPRECATED as of PHP 8.1.0

Recommend this page to a friend!

      MIME E-mail message sending  >  All threads  >  strftime DEPRECATED as of PHP 8.1.0  >  (Un) Subscribe thread alerts  
Subject:strftime DEPRECATED as of PHP 8.1.0
Summary:strftime DEPRECATED as of PHP 8.1.0
Messages:7
Author:Seb
Date:2022-12-14 05:20:27
 

  1. strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of Seb Seb - 2022-12-14 05:20:27
The deprecated 'strftime' function is used in a couple of places:
email_message.php
qmail_message.php

I believe this could be easily replaced with the 'date' function instead.

  2. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of Seb Seb - 2022-12-14 05:39:10 - In reply to message 1 from Seb
strftime("%Y%m%d%H%M%S", $seconds)

=>

date("YmdHis", $seconds)

  3. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2022-12-14 12:37:40 - In reply to message 1 from Seb
Hello,

Right now, I am not testing with PHP 8.1.0. Maybe I can try it over the weekend.

Can you wait for me to look into this next weekend?

  4. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of intrapole intrapole - 2024-06-24 10:24:08 - In reply to message 3 from Manuel Lemos
Hi Manuel,
could you fix this please? Maybe migrate source to Github so we could PR and help you?

  5. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2024-06-25 14:33:27 - In reply to message 4 from intrapole
Hello,

Coincidentally it is on my to-do list for this week. Can you wait just a bit more?

  6. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of intrapole intrapole - 2024-06-25 15:31:04 - In reply to message 5 from Manuel Lemos
I will wait! Thanks

  7. Re: strftime DEPRECATED as of PHP 8.1.0   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2024-06-25 23:46:09 - In reply to message 6 from intrapole
I just fixed the email_message_class to use the date function. Can you test it and let me know if it works well for you?