Author Topic: 12/24 hour in LM_SMTP_*.txt names  (Read 4497 times)

jason.holloway

  • Posts: 5
    • View Profile
12/24 hour in LM_SMTP_*.txt names
« 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

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
12/24 hour in LM_SMTP_*.txt names
« Reply #1 on: July 26, 2007, 08:40:16 am »
Good eye, Jason!  I will do as you suggested.

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting