From nobody Sun May 5 18:57:04 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail(p=none dis=none) header.from=outlook.com Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1525551809117800.6244697238469; Sat, 5 May 2018 13:23:29 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id F26972033D1B9; Sat, 5 May 2018 13:23:27 -0700 (PDT) Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-oln040092066019.outbound.protection.outlook.com [40.92.66.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 186EF2033D1B1 for ; Sat, 5 May 2018 13:23:25 -0700 (PDT) Received: from DB5EUR01FT060.eop-EUR01.prod.protection.outlook.com (10.152.4.58) by DB5EUR01HT042.eop-EUR01.prod.protection.outlook.com (10.152.5.85) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.20.735.16; Sat, 5 May 2018 20:23:19 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com (10.152.4.51) by DB5EUR01FT060.mail.protection.outlook.com (10.152.5.232) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.20.735.16 via Frontend Transport; Sat, 5 May 2018 20:23:19 +0000 Received: from VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e]) by VI1PR0801MB1790.eurprd08.prod.outlook.com ([fe80::7c79:584b:2e12:783e%17]) with mapi id 15.20.0715.024; Sat, 5 May 2018 20:23:19 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=40.92.66.19; helo=eur01-ve1-obe.outbound.protection.outlook.com; envelope-from=marvin.haeuser@outlook.com; receiver=edk2-devel@lists.01.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DDnVX9cDAbiIxuTnOZ8tRRLEOGzo6A4lCTioNHMn+hs=; b=olAdQFcyRLaID15xIhJ5XhKBVUSZBQ5erHFuIAlp7ZCy9HfBixC9GBk26LNBqZNNiMSUTcb6hdjbpOZBr7rq1z4KEe4fGJF5KzsfHpTgwaFr3ImK7iTQr0gPCsF75NSl8x92LJhNGD+bPxAedJawMrTTLwW5lF9c6Mnu220h04EN0B7BJFhJUi31WRIKvUmAKjCfrFqHTlFedp57O4zb9Cgdo0njoj7lxG0TxKDFltaS4dLv56lEAdWocMskUur0RkAvLBSYak3qN1seCDmbxqxAdGRbH0NKN0ak8vkvq7aBtPtNEGsmGlGr5LKU90UT4rpnrPH6yCeNq7u978VN5Q== From: =?iso-8859-1?Q?Marvin_H=E4user?= To: "edk2-devel@lists.01.org" Thread-Topic: [PATCH] ShellPkg/UefiShellLevel2CommandsLib: Support unspecified local Timezone. Thread-Index: AQHT5K7o92gCicGCxUSYAwEfJc4i7Q== Date: Sat, 5 May 2018 20:23:19 +0000 Message-ID: Accept-Language: de-DE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: AM0PR0102CA0051.eurprd01.prod.exchangelabs.com (2603:10a6:208::28) To VI1PR0801MB1790.eurprd08.prod.outlook.com (2603:10a6:800:5b::15) x-incomingtopheadermarker: OriginalChecksum:7B1668EF3A0F5EF43BF0B480732A3A00EDA4A14D185A206156F97A93BB2B0C82; UpperCasedChecksum:60F285CB4B57A0F075FFBA9AA74F98503725C45984FEF3CABB3CB4A48E3C8FFF; SizeAsReceived:7513; Count:48 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [ZeNQ5agFJJD/qz40IBI/HCqKCEgUxmAM] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB5EUR01HT042; 7:jhHA6J/sj3s04LeMPI+32MJiye3ijcxt+gLWoD6BHMuKbmTLe4UTX1bwAGBMbQwmfexTSmL0I0qYraXLSvQCHwdUczQLXj7mqL4gcFek6nk5gPP6mZzqAeEAQ9U3TuvtyUmVpKJl0ittAPng3h7dHYiJ9wx2LmESKItEF0fM/6uqJ93MCShq/NFLslUpOdY1PZAt0m+Wphpwdl4zuKgYROnufh/z7Drmhjdvaw6Sh302FB63rdsIc/TFCerpnCGo x-incomingheadercount: 48 x-eopattributedmessage: 0 x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(201702061078)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322404)(1601125374)(1603101448)(1701031045); SRVR:DB5EUR01HT042; x-ms-traffictypediagnostic: DB5EUR01HT042: x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(444000031); SRVR:DB5EUR01HT042; BCL:0; PCL:0; RULEID:; SRVR:DB5EUR01HT042; x-forefront-prvs: 0663390E1B x-forefront-antispam-report: SFV:NSPM; SFS:(7070007)(98901004); DIR:OUT; SFP:1901; SCL:1; SRVR:DB5EUR01HT042; H:VI1PR0801MB1790.eurprd08.prod.outlook.com; FPR:; SPF:None; LANG:; x-microsoft-antispam-message-info: w57SjL5WK2Oy82qUlWmIVr6B+g1brUeg+8pryVV2tTdICdpz9Dp1T7xTjpAgkQDQR5arnHqEYnx+QuyOsO3NEOplmi9Ph+UtKNcTqPayzg2CjAFp2JrH4eDma7SF+18mNXQG2+EYzjgbPrGg/VL3hzsiL8/JqJOa2XlEwXcJARKeLxDh+12wcX3f/TfwRMOA MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 17f33e35-63d5-4289-ff13-08d5b2c60a49 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-Network-Message-Id: 17f33e35-63d5-4289-ff13-08d5b2c60a49 X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 7181d4b0-87d6-4f4e-ba33-0d3746212cec X-MS-Exchange-CrossTenant-originalarrivaltime: 05 May 2018 20:23:19.3527 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT042 Subject: [edk2] [PATCH] ShellPkg/UefiShellLevel2CommandsLib: Support unspecified local Timezone. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: "jaben.carsey@intel.com" , "ruiyu.ni@intel.com" Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" EFI_RUNTIME_SERVICES.GetTime() might return an unspecified Timezone, such as when SetTime() has not been called after the PC-AT CMOS RTC was cut off power. Consider this case by not attempting Timezone translations for when it is invalid. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Marvin Haeuser Reviewed-by: Jaben Carsey Reviewed-by: Ruiyu Ni --- ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c b/ShellPkg/Li= brary/UefiShellLevel2CommandsLib/Ls.c index 7d2e15f5206b..73804b4516ba 100644 --- a/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c +++ b/ShellPkg/Library/UefiShellLevel2CommandsLib/Ls.c @@ -2,7 +2,7 @@ Main file for ls shell level 2 function. =20 (C) Copyright 2013-2015 Hewlett-Packard Development Company, L.P.
- Copyright (c) 2009 - 2017, Intel Corporation. All rights reserved.
+ Copyright (c) 2009 - 2018, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BS= D License which accompanies this distribution. The full text of the license may b= e found at @@ -506,7 +506,7 @@ PrintLsOutput( // Change the file time to local time. // Status =3D gRT->GetTime(&LocalTime, NULL); - if (!EFI_ERROR (Status)) { + if (!EFI_ERROR (Status) && (LocalTime.TimeZone !=3D EFI_UNSPECIFIED_= TIMEZONE)) { if ((Node->Info->CreateTime.TimeZone !=3D EFI_UNSPECIFIED_TIMEZONE= ) && (Node->Info->CreateTime.Month >=3D 1 && Node->Info->CreateTime= .Month <=3D 12)) { // --=20 2.17.0.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel