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

Convert Time Correctly #120

Closed
falchion10 opened this issue Jun 8, 2023 · 1 comment
Closed

Convert Time Correctly #120

falchion10 opened this issue Jun 8, 2023 · 1 comment

Comments

@falchion10
Copy link

If you have a problem with the workflow please answer the following questions.

Are you using the latest version of the workflow?
Yes, current latest version is 4.0.2

Describe the bug
For reference, my time is UTC-5 (America/Chicago)

When I type "time utc" it gives me my current time, not the time in UTC. This happens with all timezones, not just UTC. The Timespan is also incorrect, it shows "5 hours ago" but UTC is not 5 hours behind me, it is 5 hours ahead. It should show "5 hours ahead".

When I type "time 12pm utc" it gives me 12pm in my timezone, it should show 7am. This should display my time - 5 hours because when it's 12pm in UTC it would be 7am in America/Chicago time. The timespan is correct on this one, showing how far away it is from 12pm UTC time.

To Reproduce
Steps to reproduce the behavior:

  1. Open Alfred
  2. Type "time utc" or "time 12pm utc"
  3. You will see that it displays your current time.

Expected behavior
It should show me the time in the timezone I typed out. For instance for me it should show my time + 5 hours since Chicago is 5 hours behind UTC. It should also show what time it would be for me in the specified timzone (e.g. "time 12pm utc" would show 7am for me"

Debug Output
debugoutput

debugoutput2

Please enable debug (see image) open Alfred and type the conversion that it's not working, you will see that the debug window is populated with a lot of text, please paste that text in here.

System information:

  • OS: macOS Sonoma 14.0 (21A5257q)
  • Alfred Version: 5.1.1 [2138]
  • PHP Version: 8.2.6

Additional context
This is basically a bump of Issue #46 as it has been almost 2 years with seemingly no update on if this will be changed.

@biati-digital
Copy link
Owner

This is not a bug, using time utc will not work because that simply does not exist in the workflow.

You can upvote the existing issue or even better submit a PR to add this functionality.

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

No branches or pull requests

2 participants