~emersion/public-inbox

gamja: Use browser locale for date-separator v2 APPLIED

good catch!

xse (1):
  components/buffer: use browser locale for date-separator

 components/buffer.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

-- 
2.32.0
#672174 .build.yml success
gamja/patches/.build.yml: SUCCESS in 1m30s

[Use browser locale for date-separator][0] v2 from [~xse][1]

[0]: https://lists.sr.ht/~emersion/public-inbox/patches/28287
[1]: mailto:xse@riseup.net

✓ #672174 SUCCESS gamja/patches/.build.yml https://builds.sr.ht/~emersion/job/672174
Pushed, thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/public-inbox/patches/28287/mbox | git am -3
Learn more about email & git

[PATCH gamja v2 1/1] components/buffer: use browser locale for date-separator Export this patch

From: xse <xse@riseup.net>

---
 components/buffer.js | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/components/buffer.js b/components/buffer.js
index f312c17..eaae0e1 100644
--- a/components/buffer.js
+++ b/components/buffer.js
@@ -527,10 +527,7 @@ class DateSeparator extends Component {

	render() {
		let date = this.props.date;
		let YYYY = date.getFullYear().toString().padStart(4, "0");
		let MM = (date.getMonth() + 1).toString().padStart(2, "0");
		let DD = date.getDate().toString().padStart(2, "0");
		let text = `${YYYY}-${MM}-${DD}`;
		let text = date.toLocaleDateString([], { year: "numeric", month: "2-digit", day: "2-digit" });
		return html`
			<div class="separator date-separator">
				${text}
-- 
2.32.0
gamja/patches/.build.yml: SUCCESS in 1m30s

[Use browser locale for date-separator][0] v2 from [~xse][1]

[0]: https://lists.sr.ht/~emersion/public-inbox/patches/28287
[1]: mailto:xse@riseup.net

✓ #672174 SUCCESS gamja/patches/.build.yml https://builds.sr.ht/~emersion/job/672174
Pushed, thanks!