Jump to content

Talk:Next Irish general election

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

June Red C poll date issue

[edit]

Pinging Lough Swilly - there's an error I can't fix; the latest poll you've entered (Business Post/Red C, 25 June, published 28 June) lists the last polling date in the opdrts template, correctly, as 25 June, but for some reason, it's displaying as "2 June 2025". No idea why. Pinging @Rwendland and @Ralbegen, who may be able to shed some light? BastunĖġáḍβáś₮ŭŃ! 21:47, 28 June 2025 (UTC)[reply]

It's because the month can only be in "3-letter text form", or numeric (If I remember correctly because PHP's strtotime() function only accepts 3 letter forms!). It's in the opdrts documentation, but I hadn't appreciated an error message would not be generated by #time/strtotime, and it would just do something strange. I've fixed it in this article. In the next few days when I have time, I'll look at opdrts and try to improve its error reporting in this case as this is obviously not really good enough. Rwendland (talk) 22:18, 28 June 2025 (UTC)[reply]
Thank you for the very quick response, @Rwendland - very much appreciated! BastunĖġáḍβáś₮ŭŃ! 22:56, 28 June 2025 (UTC)[reply]
Oops, I apologise. I should've caught that. Lough Swilly (talk) 23:52, 28 June 2025 (UTC)[reply]
Not at all, that kind of thing is easy to miss, especially when you'd entered everything correctly! BastunĖġáḍβáś₮ŭŃ! 13:38, 29 June 2025 (UTC)[reply]
I've fixed this in Opdrts, by extending it to allow full month names which seems easier than making it produce an error message for this! It is all to do with the somewhat strange date formats #time (raelly the underlying PHP strtotime) accepts. I wanted it to accept both numeric months and 3-letter months, but the obvious format eg "25 June 2025" unsurprisingly does not work for "25 06 2025". I discovered the pseudo ISO form works for both "2025-Jun-25" and "2025-10-25", but does not accept "2025-June-25", but as I wan't bothered by the third case I went with this not realising there would be no error message for that (there is for a complete typo like "Junr"). However careful study of the documentation made me realise it accepted a revers-pseudo-ISO form that very happily accepts all three opdrts formats, so it was a simple change to switch to using this. More explanation in Template:Opdrts/doc#Implementation notes if you are interested. After a couple of weeks to see if anything else has broken (have checked UK polls worh the same), I will document that Opdrts also accepts full month names now. Rwendland (talk) 13:02, 1 July 2025 (UTC)[reply]
Thanks again, both for the solution and documentation, the bit everyone hates doing! BastunĖġáḍβáś₮ŭŃ! 14:27, 1 July 2025 (UTC)[reply]

6 July Sindo poll

[edit]

Anyone got access to it? Can't find anyone else reporting on it. BastunĖġáḍβáś₮ŭŃ! 15:27, 6 July 2025 (UTC)[reply]