ListMailPRO Email Marketing Software Forums

ListMailPRO Email Marketing Software Forums => Development, Suggestions => Topic started by: jason.holloway on July 26, 2007, 08:10:51 am

Title: 12/24 hour in LM_SMTP_*.txt names
Post by: jason.holloway on July 26, 2007, 08:10:51 am
Looks like the SMTP logfiles use 12h clock for file naming, causing confusion in ordering, and potential overwrites:

Code: [Select]
 -rw-r--r-- 1 apache   apache    2556190 Jul 26 14:35 LM_SMTP_2007-07-26_01-36-18.txt
  -rw-r--r-- 1 apache   apache      61229 Jul 26 15:03 LM_SMTP_2007-07-26_03-02-20.txt
  -rw-r--r-- 1 apache   apache        681 Jul 26 12:47 LM_SMTP_2007-07-26_12-47-34.txt
  -rw-r--r-- 1 apache   apache       3233 Jul 26 12:50 LM_SMTP_2007-07-26_12-50-07.txt

This comes from here:

admin.php:876:  $bugfn = './attach/LM_SMTP_'.date("Y-m-d_h-i-s").'.txt';

so that format string might be better as "Y-m-d_H-i-s"

- jmb
Title: 12/24 hour in LM_SMTP_*.txt names
Post by: DW on July 26, 2007, 08:40:16 am
Good eye, Jason!  I will do as you suggested.

Regards