Skip to content
This repository was archived by the owner on Jul 29, 2026. It is now read-only.

Display months instead of days issue #332 - #336

Merged
samtstern merged 4 commits into
google:mainfrom
jollypolly123:days-to-months
Feb 8, 2022
Merged

samtstern merged 4 commits into
google:mainfrom
jollypolly123:days-to-months

Conversation

@jollypolly123

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread functions/src/content.ts Outdated
const withColons = `:${k}:`;
const asEmoji = emojis[k];
content = content.replace(new RegExp(withColons, "g"), asEmoji);
const contentList = content.split("```");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@jollypolly123 could you remove these changes from this PR so that it's just the date part?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Just changed! Sorry if this isn't proper etiquette, but is that change being reviewed? It's in PR #335

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll take a look

Comment thread app/src/plugins/dates.ts
return "today";
} else if (daysAgo === 1) {
return "yesterday";
} else if (daysAgo > 30) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This looks great!

@samtstern samtstern left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I'll approve this PR once we remove the emoji changes from this.

@samtstern
samtstern merged commit 8cbb866 into google:main Feb 8, 2022
@jollypolly123
jollypolly123 deleted the days-to-months branch February 8, 2022 17:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants