Changeset 743 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Apr 23, 2021 11:00:26 PM (3 years ago)
Author:
anonymous
Message:

Add SC_DUMP_JSON flag to dump(). Update comments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r742 r743  
    115115
    116116        // Human-readable format used to display dates.
    117         'date_format' => 'd M Y',
    118         'time_format' => 'h:i A',
    119         'lc_date_format' => '%e %b %Y', // Localized date for strftime() https://www.php.net/manual/en/function.strftime.php
     117        'date_format' => 'd M Y', // Format accepted by DateTimeInterface::format() https://www.php.net/manual/en/datetime.format.php
     118        'time_format' => 'h:i A', // Format accepted by DateTimeInterface::format() https://www.php.net/manual/en/datetime.format.php
     119        'lc_date_format' => '%d %b %Y', // Localized date for strftime() https://www.php.net/manual/en/function.strftime.php
    120120        'lc_time_format' => '%k:%M', // Localized time for strftime() https://www.php.net/manual/en/function.strftime.php
    121121        'sql_date_format' => '%e %b %Y',
     
    18801880
    18811881        try {
    1882             // Create a DateTime object and conver the timezone from server to user.
     1882            // Create a DateTime object and convert the timezone from server to user.
    18831883            $dt = $this->convertTZ($datetime, $this->getParam('php_timezone'), $this->getParam('user_timezone'));
    18841884        } catch (Exception $e) {
Note: See TracChangeset for help on using the changeset viewer.