From c31461b9e76c84b4e2334db757c4b14ee3f3718b Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Thu, 15 Aug 2024 18:37:16 -0700 Subject: [PATCH] Updated `dateheaderformat iso` in `gam info|print|show messages` --- docs/GamUpdates.md | 5 +++++ docs/How-to-Upgrade-from-Standard-GAM.md | 8 ++++---- docs/Users-Gmail-Messages-Threads.md | 2 +- docs/Version-and-Help.md | 22 +++++++++++----------- src/GamUpdate.txt | 7 ++++++- src/gam/__init__.py | 2 +- 6 files changed, 28 insertions(+), 18 deletions(-) diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 5341c6ee..0bedc44f 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,11 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs](https://github.com/taers232c/GAMADV-XTD3/wiki/Downloads-Installs) for Windows or other options, including manual installation +### 6.80.07 + +Updated `dateheaderformat iso` in `gam info|print|show messages` to include a colon +between the hours and minutes in the timezone portion of the string as in all other time strings. + ### 6.80.06 Added option `tdreturnidonly []` to `` that when true (the default), causes GAM to display diff --git a/docs/How-to-Upgrade-from-Standard-GAM.md b/docs/How-to-Upgrade-from-Standard-GAM.md index 8faeca78..53e5d338 100644 --- a/docs/How-to-Upgrade-from-Standard-GAM.md +++ b/docs/How-to-Upgrade-from-Standard-GAM.md @@ -251,9 +251,9 @@ writes the credentials into the file oauth2.txt. admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt admin@server:/Users/admin$ gam version WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found -GAMADV-XTD3 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 Path: /Users/admin/bin/gamadv-xtd3 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com @@ -923,9 +923,9 @@ writes the credentials into the file oauth2.txt. C:\>del C:\GAMConfig\oauth2.txt C:\>gam version WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found -GAMADV-XTD3 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final Windows-10-10.0.17134 AMD64 Path: C:\GAMADV-XTD3 Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com diff --git a/docs/Users-Gmail-Messages-Threads.md b/docs/Users-Gmail-Messages-Threads.md index 4dd1d57f..545dec1e 100644 --- a/docs/Users-Gmail-Messages-Threads.md +++ b/docs/Users-Gmail-Messages-Threads.md @@ -583,7 +583,7 @@ By default, the Message ID and these SMTP headers are displayed: `Date, Subject, Use these options to customize the display. By default, the `` values are displayed in RFC2822 format; the `dateheaderformat iso|rfc2822|` option allows reformatting it: -* `iso` - Format is `%Y-%m-%dT%H:%M:%S%z` +* `iso` - Format is `%Y-%m-%dT%H:%M:%S%:z` * `rfc2822` - Format is `%a, %d %b %Y %H:%M:%S %z` * `` - Format according to: https://docs.python.org/3/library/datetime.html#strftime-strptime-behavior If the `Date` header value can't be parsed as RFC2822, it is left unchanged. diff --git a/docs/Version-and-Help.md b/docs/Version-and-Help.md index 9a408cfe..01fcc985 100644 --- a/docs/Version-and-Help.md +++ b/docs/Version-and-Help.md @@ -3,9 +3,9 @@ Print the current version of Gam with details ``` gam version -GAMADV-XTD3 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com @@ -15,9 +15,9 @@ Time: 2023-06-02T21:10:00-07:00 Print the current version of Gam with details and time offset information ``` gam version timeoffset -GAMADV-XTD3 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com @@ -27,9 +27,9 @@ Your system time differs from www.googleapis.com by less than 1 second Print the current version of Gam with extended details and SSL information ``` gam version extended -GAMADV-XTD3 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource +GAMADV-XTD3 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 - pythonsource Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com @@ -37,7 +37,7 @@ Time: 2023-06-02T21:10:00-07:00 Your system time differs from admin.googleapis.com by less than 1 second OpenSSL 3.1.1 30 May 2023 cryptography 41.0.1 -filelock 3.12.4 +filelock 3.12.5 google-api-python-client 2.88.0 google-auth-httplib2 0.1.0 google-auth-oauthlib 1.0.0 @@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Version Check: Current: 5.35.08 - Latest: 6.80.06 + Latest: 6.80.07 echo $? 1 ``` @@ -72,7 +72,7 @@ echo $? Print the current version number without details ``` gam version simple -6.80.06 +6.80.07 ``` In Linux/MacOS you can do: ``` @@ -82,9 +82,9 @@ echo $VER Print the current version of Gam and address of this Wiki ``` gam help -GAM 6.80.06 - https://github.com/taers232c/GAMADV-XTD3 +GAM 6.80.07 - https://github.com/taers232c/GAMADV-XTD3 Ross Scroggs -Python 3.12.4 64-bit final +Python 3.12.5 64-bit final MacOS Sonoma 14.5 x86_64 Path: /Users/Admin/bin/gamadv-xtd3 Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, customer_id: my_customer, domain: domain.com diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index f8903e33..69e4d671 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -2,10 +2,15 @@ Merged GAM-Team version +6.80.07 + +Updated `dateheaderformat iso` in `gam info|print|show messages` to include a colon +between the hours and minutes in the timezone portion of the string as in all other time strings. + 6.80.06 Added option `tdreturnidonly []` to `` that when true (the default), causes GAM to display -only the uploaded file ID to stdout. This can be captured and used in subsequent commands, `tdfileid ` that will update the same file. +only the uploaded file ID to stdout. This can be captured and used in subsequent commands, `tdfileid ` that will update the same file. 6.80.05 diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 10f40a4d..aef41005 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -153,7 +153,7 @@ import googleapiclient.errors import googleapiclient.http from iso8601 import iso8601 -IS08601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S%z' +IS08601_TIME_FORMAT = '%Y-%m-%dT%H:%M:%S%:z' RFC2822_TIME_FORMAT = '%a, %d %b %Y %H:%M:%S %z' def ISOformatTimeStamp(timestamp):