News for hackers. Stuff that matters.
Re:Tz: A Time Zone Helper by geocrasher on Tuesday March 23, 2021 @10:17AM (#26555295)
This is very neat! I can use this at work where I talk to people from all over the world on a regular basis. Will it displace https://worldtimebuddy.com/ in my workflow? I don't know, but it'll be fun to find out.

Not being one of the Cool Kids who has a golang environment ready to go, I logged into my trusty CentOS 7 box and installed golang with "yum install go" which went fine. I cloned the rep and attempted to build:

git clone https://github.com/oz/tz

cd tz

go build

Nothing. Nada. Dead. Not even an error.

Some googling[1] led me to 'go list -x' to list the modules, which was failing. I suspected failed IPv6 resolution (an issue on this box) so some more googling[2] led me to add this in /etc/gai.conf:

precedence ::ffff:0:0/96 100

This solved the problem with IPv6 hanging up, as IPv4 is now the preference. Neat. Now, it still failed with another error: invalid pseudo-version

This appeared to be due to an older version of git, so I installed a newer version, again after some googling[3]:

yum -y erase git

yum -y install https://repo.ius.io/ius-release-el7.rpm

yum -y install git222

I also had to reinstall golang with 'yum install go' and now I am rewarded with a completed 'go build'. Neat! I am looking forward to checking this little program out.

[1] https://github.com/golang/go/issues/16104 [2] https://stackoverflow.com/a/21672312 [3] https://github.com/golang/go/issues/38373#issuecomment-70187...

Re:Tz: A Time Zone Helper by twic on Tuesday March 23, 2021 @10:59AM (#26555811)
> I logged into my trusty CentOS 7 box and installed golang with "yum install go"

Ah well there's your problem!

I'm always nervous about installing language toolchains from the standard repositories on CentOS, because they are often very out of date, or intertwined with the rest of the base system in awkward ways (this is more of a gcc concern perhaps). I have no idea what the state of Go on CentOS is, so this could be baseless nervousness in this case.

If there is a software collection for a toolchain, that may be a better bet than whatever is in the main repo. There is one for Go:

https://www.softwarecollections.org/en/scls/rhscl/go-toolset...

I can't work out what's in it, so i have no idea if it would have made life any easier around your networking or Git issues. I can't even tell what version of Go is in it. The fact that there isn't a Go toolset for CentOS 8 hints that it might be quite out of date.

Re:Tz: A Time Zone Helper by geocrasher on Tuesday March 23, 2021 @03:40PM (#26559429)
Indeed this is definitely the wrong flavor of Linux for anything cutting edge. Which happens to be why I love it so much ;)
Re:Tz: A Time Zone Helper by mastre_ on Tuesday March 23, 2021 @10:46PM (#26562989)
What are your plans post-2024?
Re:Tz: A Time Zone Helper by geocrasher on Wednesday March 24, 2021 @01:13AM (#26563843)
I'm keeping an eye on https://rockylinux.org/ to see how it pans out. It's got AWS as a sponsor and according to their site "Rocky Linux is led by Gregory Kurtzer, founder of the CentOS project." That bodes well. We'll see how it goes.
Re:Tz: A Time Zone Helper by mastre_ on Wednesday March 24, 2021 @11:09AM (#26568193)
I'm in the same boat but since I'm thankfully not married to RH-like systems I'm also considering things like Debian.
Re:Tz: A Time Zone Helper by ydant on Tuesday March 23, 2021 @10:36AM (#26555548)
Seconding the recommendation for https://worldtimebuddy.com - it's a really simple thing it does, but it's somehow the only site/tool I've found that clearly displays the timezones in a way that's easy to understand, including the cross-day issues. It helped a lot for me scheduling meetings between both coasts of the US, India, and Australia.

It looks like this tool does a similar kind of display, so definitely worth giving a shot.

As for this command, I already had go installed on MacOS through homebrew (although I rarely use it in any form) - and the build went fine and the command runs as expected.

Re:Tz: A Time Zone Helper by geocrasher on Tuesday March 23, 2021 @10:46AM (#26555674)
One thing I like about woldtimebuddy.com is that you can share the link with others so that everyone is clear on scheduling. The one that always gets me is India, as they're an additional half hour ahead.
Re:Tz: A Time Zone Helper by ydant on Tuesday March 23, 2021 @12:00PM (#26556566)
Agreed. It's also concise and easy to screenshot. This CLI tool is less so.
Re:Tz: A Time Zone Helper by mywacaday on Tuesday March 23, 2021 @01:16PM (#26557440)
the copy the time window you've selected from worldtimebuddy to plain text is nice as well
Re:Tz: A Time Zone Helper by svieira on Tuesday March 23, 2021 @10:27AM (#26555421)
Your travails reminds me of Joe Armstrong's talk _The Mess We're In_ where he talks about the pains he had getting his slides for the talk ready:

https://www.youtube.com/watch?v=lKXe3HUG2l4

Re:Tz: A Time Zone Helper by throw0101a on Tuesday March 23, 2021 @04:48PM (#26560224)
> Will it displace https://worldtimebuddy.com/ in my workflow?

That site is a bit too sparse for my liking. I find the following to have a decent landing page:

* https://everytimezone.com

Re:Tz: A Time Zone Helper by zvr on Wednesday March 24, 2021 @06:58PM (#26574133)
Needs login in order to customize the timezones shown, it seems.
Re:Tz: A Time Zone Helper by Geezus_42 on Tuesday March 23, 2021 @02:34PM (#26558501)
Same issue on Ubuntu but using "go get" worked although I have no idea where the config file the developer mentions is.

Comment to dev: Please provide better documentation. Installation steps and configuration are terribly lacking.