Re: [Toybox] [PATCH] date: add --utc (synonymous with -u)

2020-11-11 Thread enh via Toybox
this one came up for me this week, but note that the existing pull
request 
https://github.com/landley/toybox/pull/249/commits/4f8a13cdf266702dc9e3281621a9b33793fa65bc
covers this and more. obviously as "captain longopts" i'd support
merging that pull request instead of this patch :-)

(i especially liked that the submitter showed how to search all debian
source for uses of the longopts in question.)

On Wed, Nov 11, 2020 at 10:07 AM enh  wrote:
>
> ---
>  toys/posix/date.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
___
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net


[Toybox] [PATCH] date: add --utc (synonymous with -u)

2020-11-11 Thread enh via Toybox
---
 toys/posix/date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
From 608089dae59b1587f3f6cdcf280cf157df77e3de Mon Sep 17 00:00:00 2001
From: Elliott Hughes 
Date: Wed, 11 Nov 2020 10:07:01 -0800
Subject: [PATCH] date: add --utc (synonymous with -u)

---
 toys/posix/date.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/date.c b/toys/posix/date.c
index f34c347f..5cf8591a 100644
--- a/toys/posix/date.c
+++ b/toys/posix/date.c
@@ -7,7 +7,7 @@
  * Note: setting a 2 year date is 50 years back/forward from today,
  * not posix's hardwired magic dates.
 
-USE_DATE(NEWTOY(date, "d:D:r:u[!dr]", TOYFLAG_BIN))
+USE_DATE(NEWTOY(date, "d:D:r:u(utc)[!dr]", TOYFLAG_BIN))
 
 config DATE
   bool "date"
-- 
2.29.2.222.g5d2a92d10f8-goog

___
Toybox mailing list
Toybox@lists.landley.net
http://lists.landley.net/listinfo.cgi/toybox-landley.net