You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "sahvx655-wq (via GitHub)" <gi...@apache.org> on 2026/05/30 07:19:43 UTC

[PR] gogo-jline: Implement support for -u (UTC) option in date command [felix-dev]

sahvx655-wq opened a new pull request, #511:
URL: https://github.com/apache/felix-dev/pull/511

   
   This PR fixes handling of the documented `-u` (UTC) timezone option in the JLine shell `date` command.
   
   In `org.apache.felix.gogo.jline.Posix.java`, the `date` command usage documentation includes the `-u` option (use UTC), but the argument parsing logic did not recognize it and instead fell through to the default error path, resulting in an `IllegalArgumentException`.
   
    Detect the `-u` option during argument processing.
    Treat `-u` as a valid option.
    Apply the UTC timezone when parsing or formatting dates.
   
   Added `testDateUtc` in `PosixTest.java`.
   Verified the new test passes successfully.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] FELIX-6842: gogo-jline: Implement support for -u (UTC) option in date command [felix-dev]

Posted by "sahvx655-wq (via GitHub)" <gi...@apache.org>.
sahvx655-wq commented on PR #511:
URL: https://github.com/apache/felix-dev/pull/511#issuecomment-4829820825

   any update?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@felix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org