8000 Add support for Date/Time attribute values by joeldrapper · Pull Request #903 · yippee-fun/phlex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for Date/Time attribute values #903

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

Merged
merged 2 commits into from
May 7, 2025

Conversation

joeldrapper
Copy link
Collaborator

Closes #883

@joeldrapper joeldrapper requested a review from willcosgrove May 7, 2025 22:16
Copy link
Contributor
@willcosgrove willcosgrove left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will be nice to have!

@joeldrapper joeldrapper merged commit 3847e8f into main May 7, 2025
13 checks passed
@joeldrapper joeldrapper deleted the support-date-time-attributes branch May 7, 2025 23:18
when Date
v.iso8601
when Time
v.respond_to?(:iso8601) ? v.iso8601 : v.strftime("%Y-%m-%dT%H:%M:%S%:z")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be :%z?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@davetron5000 I thought the same thing, but it's actually this special timezone flag: https://ruby-doc.org/3.4.1/strftime_formatting_rdoc.html#label-Timezone+Flags

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, TIL

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
3D7B

Successfully merging this pull request may close these issues.

Support Date / Time attribute values
3 participants
0