Revision: 18051
          http://sourceforge.net/p/edk2/code/18051
Author:   jljusten
Date:     2015-07-26 08:03:35 +0000 (Sun, 26 Jul 2015)
Log Message:
-----------
ShellPkg: Fix bad TimeZone (TZ) conversion.

EFI_UNSPECIFIED_TIMEZONE means display local time. TZ of 0 is UTC.
Thus EFI_UNSPECIFIED_TIMEZONE means ignore TZ, 0 means UTC. When this code is
fixed to adust file TZ to local TZ you need to preserve
EFI_UNSPECIFIED_TIMEZONE.

FAT always return EFI_UNSPECIFIED_TIMEZONE.
Modern filesystems, HFS+, NTFS, ext3, etc store time in UTC.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Andrew Fish <[email protected]>
Reviewed-by: Jaben Carsey <[email protected]>
Signed-off-by: Laszlo Ersek <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c

Modified: trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c
===================================================================
--- trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c 2015-07-26 
08:03:30 UTC (rev 18050)
+++ trunk/edk2/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c 2015-07-26 
08:03:35 UTC (rev 18051)
@@ -725,7 +725,7 @@
             SearchString,
             NULL,
             Count,
-            
(INT16)(TheTime.TimeZone==EFI_UNSPECIFIED_TIMEZONE?0:TheTime.TimeZone)
+            TheTime.TimeZone
            );
           if (ShellStatus == SHELL_NOT_FOUND) {
             ShellPrintHiiEx(-1, -1, NULL, STRING_TOKEN 
(STR_LS_FILE_NOT_FOUND), gShellLevel2HiiHandle, L"ls", FullPath);  


------------------------------------------------------------------------------
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to