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

Allow [convert-date] to display in UTC #143

Merged
merged 1 commit into from Jul 9, 2023
Merged

Conversation

msjohns1
Copy link
Contributor

@msjohns1 msjohns1 commented Jul 8, 2023

  • New "gmt" flag, to be consistent with flag in [time], that allows output to display the UTC of the input timestamp, or of current time absent an input timestamp. Tag assumes all timestamp input comes from the local timezone.

  • Ex:
    [convert-date fmt="%FT%T %Z"]2023-07-04 22:53:18[/convert-date]
    -> displays 2023-07-04T22:53:18 EDT
    [convert-date gmt=1 fmt="%FT%T UTC"]2023-07-04 22:53:18[/convert-date]
    -> displays 2023-07-05T02:53:18 UTC

* New "gmt" flag, to be consistent with flag in [time], that allows output to
  display the UTC of the input timestamp, or of current time absent an input
  timestamp. Tag assumes all timestamp input comes from the local timezone.

* Ex:
  [convert-date fmt="%FT%T %Z"]2023-07-04 22:53:18[/convert-date]
    -> displays 2023-07-04T22:53:18 EDT
  [convert-date gmt=1 fmt="%FT%T UTC"]2023-07-04 22:53:18[/convert-date]
    -> displays 2023-07-05T02:53:18 UTC
@msjohns1 msjohns1 requested a review from jonjensen July 8, 2023 20:22
@msjohns1 msjohns1 merged commit e1d84ed into master Jul 9, 2023
@msjohns1 msjohns1 deleted the convert-date-gmt branch July 9, 2023 14:36
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

Successfully merging this pull request may close these issues.

None yet

2 participants