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

Events: Better date for the table. #1131

Merged
merged 6 commits into from
Dec 7, 2023
Merged

Conversation

StevenDufresne
Copy link
Contributor

This PR improves the default date (which we hope to switch out with the user locale date) to match the designs.

Design: https://www.figma.com/file/jdMk5ssz2Av7KFfEaeK7de/Events?node-id=1617%3A14095&mode=dev

I did make a couple of choices here:

  • Remove the year
    • Seems redundant. I went to check on other sites like meetup.com they also removed the year.
  • The middot doesn't show up on tablet viewport sizes.
    • It already works like this.

Screenshots

Mobile Tablet Desktop
events wordpress test_upcoming-events_ events wordpress test_upcoming-events_ (1) events wordpress test_upcoming-events_ (2)

How to test the changes in this Pull Request:

  1. Pull this branch
  2. Navigate to your upcoming events list.

'<time class="wporg-marker-list-item__date-time" date-time="%1$s" title="%1$s"><span class="wporg-google-map__date">%2$s</span><span class="wporg-google-map__time">%3$s</span></time>',
gmdate( 'c', esc_html( $event->timestamp ) ),
gmdate( 'l, M j', esc_html( $event->timestamp ) ),
esc_html( gmdate('H:i', $event->timestamp) . ' (UTC-0)' ),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

(UTC-0) is a bit useless and maybe it should just be UTC.

Copy link
Contributor

Choose a reason for hiding this comment

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

Agree

Copy link
Contributor

@adamwoodnz adamwoodnz left a comment

Choose a reason for hiding this comment

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

Looks good, one suggestion

@StevenDufresne StevenDufresne merged commit 862a38b into production Dec 7, 2023
3 checks passed
@StevenDufresne StevenDufresne deleted the fix/better-utc-date branch December 7, 2023 04:34
@iandunn iandunn added this to the Events: Promotion milestone Dec 11, 2023
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.

3 participants