Pārlūkot izejas kodu

adds international date/time support. am/pm thing is not standard, but I want
to follow user's hour_format preference. Time zone can be displayed as numbers.
O key instead of T.

mm/dd/yy and dd/mm/yy names replaced with human readable description.

tokul 21 gadi atpakaļ
vecāks
revīzija
19ddb3e7d4
2 mainītis faili ar 6 papildinājumiem un 2 dzēšanām
  1. 3 2
      include/options/folder.php
  2. 3 0
      src/left_main.php

+ 3 - 2
include/options/folder.php

@@ -189,8 +189,9 @@ function load_optpage_data_folder() {
         'caption' => _("Show Clock on Folders Panel"),
         'caption' => _("Show Clock on Folders Panel"),
         'type'    => SMOPT_TYPE_STRLIST,
         'type'    => SMOPT_TYPE_STRLIST,
         'refresh' => SMOPT_REFRESH_FOLDERLIST,
         'refresh' => SMOPT_REFRESH_FOLDERLIST,
-        'posvals' => array( '1' => 'MM/DD/YY HH:MM',
-                            '2' => 'DD/MM/YY HH:MM',
+        'posvals' => array( '0' => _("International date and time"),
+			    '1' => _("American date and time"),
+                            '2' => _("European date and time"),
                             '3' => _("Show weekday and time"),
                             '3' => _("Show weekday and time"),
                             '4' => _("Show time with seconds"),
                             '4' => _("Show time with seconds"),
                             '5' => _("Show time"),
                             '5' => _("Show time"),

+ 3 - 0
src/left_main.php

@@ -979,6 +979,9 @@ if ($date_format != 6) {
     }
     }
 
 
     switch( $date_format ) {
     switch( $date_format ) {
+    case 0:
+	$clk = date('Y-m-d '.$hr. ' T', time());
+	break;
     case 1:
     case 1:
         $clk = date('m/d/y '.$hr, time());
         $clk = date('m/d/y '.$hr, time());
         break;
         break;