<div dir="ltr"><div dir="ltr"><br><div><br></div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Mar 6, 2023 at 4:49 PM Tim Chase <<a href="mailto:remind@tim.thechases.com">remind@tim.thechases.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The main difference seems to be that it outsources worring about<br>
DST from the application layer or reminder-file layer to the OS<br>
layer. So if you change OS settings for your timezone and locality,<br>
you don't have to update anything in your reminder file(s). Or,<br>
if laws change when DST occurs and your OS updates to the new laws,<br>
you don't need to do anything to your reminder file(s).<br>
<br><br>
<br>
<br></blockquote>This conversation actually created an idea in my mind.<div><br></div><div>My kids aren't Linux users (disappointed!), but I've had a whole reminders setup for all of them that emails their reminders every day. It's why I wrote <a href="http://ical2rem.pl">ical2rem.pl</a> years ago, so I could take their Google Calendars and email them an agenda each day.</div><div><br></div><div>Well, the kids have grown up and moved away. I've set up $Latitude, $Longitude and $Location so that their daily reminders tell them sunrise and sunset, etc....but then one of my boys moved to the Central Timezone, and I just realized I'm sending him the wrong times because my computer lives in ET. And I was sending the sunrise and sunset times for everyone for Cleveland Heights. When 2 of them live in Northern Michigan, and one in Boston.</div><div><br></div><div>I see that "Remind doesn't have any support for timezones" so...my solution was to put a location file for each user as an INCLUDE, as so:</div><div><br></div><div>SET $Latitude "44.968738"<br>SET $Longitude "-93.278902"<br>SET $Location "Minneapolis"<br>#TZ America/Chicago<br></div><div><br></div><div>Then my script that sends the reminders does (among other things):</div><div><br></div><div> timezone=$(cat $d/location | grep TZ | sed -e 's/.*#TZ \(.*\)/\1/g')<br></div><div><br></div><div>cat $ft | TZ=$timezone perl ~/git/ical2rem/<a href="http://ical2rem.pl">ical2rem.pl</a> --label "Online Calendar" --heading "PRIORITY 9999" --lead-time $t > $d/ical2rem<br></div><div>TZ=$timezone /usr/bin/remind -q -iplain=1 $d/reminders<br></div><div><br></div><div>($ft is the contents of downloaded google calendars. $d is the directory with the person's reminders files)</div><div><br></div><div>There's a lot more, but that's how I solved the "Users in timezones other than my OS timezone" problem. </div></div></div>