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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to