/adei/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/trunk

« back to all changes in this revision

Viewing changes to classes/handlers/csv.php

  • Committer: Suren A. Chilingaryan
  • Date: 2018-04-16 07:55:55 UTC
  • Revision ID: csa@suren.me-20180416075555-3y45n4jni2k1m0t6
Allow time format customization for CSV export

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
        }
24
24
    }
25
25
    
 
26
    if (isset($opts['req'])) {
 
27
        $time = $opts['req']->GetTimeFormat();
 
28
        if ($time) $this->date_format = $time;
 
29
    }
 
30
    
26
31
    if (!$this->separator) $this->separator = $CSV_SEPARATOR;
27
32
    if (!$this->date_format) $this->date_format = $CSV_DATE_FORMAT;
28
33
 }