~emersion/public-inbox

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
3 3

[PATCH gamja v2 0/1] Use browser locale for date-separator

Details
Message ID
<164218238995.2416.14517787995028063153-0@git.sr.ht>
DKIM signature
missing
Download raw message
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

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

Details
Message ID
<164218238995.2416.14517787995028063153-1@git.sr.ht>
In-Reply-To
<164218238995.2416.14517787995028063153-0@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
Patch: +1 -4
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] build success

builds.sr.ht <builds@sr.ht>
Details
Message ID
<CH5L3TIWUYPP.3QRW8S6N6J650@cirno>
In-Reply-To
<164218238995.2416.14517787995028063153-1@git.sr.ht> (view parent)
DKIM signature
missing
Download raw message
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]: xse@riseup.net

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

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

Details
Message ID
<56PXf8I9UjyOQ6xqTOozk2iONM0rVLPuVlYOhLoQn8fC_YaMO3lpExGmNJLT9Wd44H7jjeoA84oCvK0dS6e19eYC-th23JfXIkuB9oxyr4U=@emersion.fr>
In-Reply-To
<164218238995.2416.14517787995028063153-1@git.sr.ht> (view parent)
DKIM signature
pass
Download raw message
Pushed, thanks!
Reply to thread Export thread (mbox)