Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

force:apex:logs:get doesn't respect user locale when printing log START TIME #235

Open
YodaDaCoda opened this issue Aug 20, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@YodaDaCoda
Copy link

YodaDaCoda commented Aug 20, 2021

Summary

force:apex:logs:list outputs a list of log files with the datestamp in UTC. This means I have to try to do timezone conversion to figure out which logs I'm actually after.

Steps To Reproduce:

  1. sfdx force:apex:logs:list
  2. Observe that the "START TIME" column lists dates in ISO8601 format (good) but +0000 timezone offset (bad).

Expected result

I expect the datestamp to be in my locale, not UTC. This should either be my Salesforce user's locale, or my machine's locale. I'd prefer my machine's locale and this would probably be easier to implement.

Actual result

The datestamp is output in UTC time (+0000 offset) which means I have to do timezone conversion to figure out the date/time of the logs I'm looking for.

Additional information

n/a

Apex library Version:

apex 0.2.7 (core)

OS and version:

Windows 10, Version 21H1, Build 19043.1165

@randi274 randi274 added the enhancement New feature or request label Aug 27, 2021
YodaDaCoda added a commit to YodaDaCoda/salesforcedx-apex that referenced this issue Aug 31, 2021
@AnanyaJha
Copy link
Contributor

Hi @YodaDaCoda thanks for contributing this feature request! I'll leave it to @smaddox-sf to chime in on whether we can implement it at this time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants