Changeset 815 for trunk


Ignore:
Timestamp:
May 5, 2024 8:41:57 PM (2 weeks ago)
Author:
anonymous
Message:

Minor fixes

Location:
trunk
Files:
2 edited

Legend:

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

    r812 r815  
    19581958        $format = $format ?: $this->getParam('lc_date_format');
    19591959        if ($format && mb_strpos($format, '%') !== false) {
    1960             // The date format is localized for strftime(). It only accepts a timestamp, which are always in UTC, so we hack this by offering the date from the user's timezone in a format without a TZ specified, which is used to a make a timestamp for strftime (we can't use DaateTime->format('U') because that would convert the date back to UTC).
    1961             return strftime($format, strtotime($dt->format('Y-m-d H:i:s')));
     1960            // The date format is localized for strftime(). It only accepts a timestamp, which are always in UTC, so we hack this by offering the date from the user's timezone in a format without a TZ specified, which is used to a make a timestamp for strftime (we can't use DateTime->format('U') because that would convert the date back to UTC).
     1961            // FIXME: The strftime() function is deprecated as of PHP 8.1.
     1962            // Consider replacing strftime() with a non-deprecated alternative like DateTime::format() or IntlDateFormatter for locale-specific formatting.
     1963            return @strftime($format, strtotime($dt->format('Y-m-d H:i:s')));
    19621964        } else {
    19631965            // Otherwise use a regular date format.
     
    19801982    {
    19811983        try {
    1982             // Create a DateTime object and conver the timezone from server to user.
     1984            // Create a DateTime object and convert the timezone from server to user.
    19831985            $dt = $this->convertTZ($datetime, $this->getParam('user_timezone'), $this->getParam('php_timezone'));
    19841986        } catch (Exception $e) {
  • trunk/services/templates/login_form.ihtml

    r763 r815  
    88        <td class="sc-right"><label for="username"><?php echo _("Username"); ?></label></td>
    99        <td>
    10             <input type="text" class="sc-small" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" />
     10            <input type="text" class="sc-medium" size="20" name="username" value="<?php echo oTxt($frm['username']); ?>" />
    1111        </td>
    1212    </tr>
     
    1414        <td class="sc-right"><label for="password"><?php echo _("Password"); ?></label></td>
    1515        <td>
    16             <input type="password" class="sc-small" size="20" name="password" value=""<?php echo $autocomplete; ?> />
     16            <input type="password" class="sc-medium" size="20" name="password" value=""<?php echo $autocomplete; ?> />
    1717        </td>
    1818    </tr>
Note: See TracChangeset for help on using the changeset viewer.