CarlosNZ

TimeZones - a World Clock script filter [updated to v1.7]

131 posts in this topic

1 minute ago, Jarek said:

 

Unfortunately, this is "known issue" ☺️ Invoke "timezone update" to get all your defined locations up to date. And not forget doing it again in 6 months ☺️

 

Best regards, Jarek 

Yeah, it's the price you pay for speed. I could have it look up the true time difference every single run, but that wouldn't give instant results.

Share this post


Link to post

For some reason, I see the custom times in 24H format, and not the PM format. I checked the other thread to make sure of AMPM format, and it was correctly set. But it still shows in 24H format even after reloading :/

 

Any ideas?

Share this post


Link to post
2 hours ago, Yourname said:

But it still shows in 24H format even after reloading :/

I don't know the answer but I would take this chance to get comfortable with 24. Am/pm is just an annoyance when you get used to it. There's a reason many countries use 24 including the US military

Share this post


Link to post
5 hours ago, Yourname said:

For some reason, I see the custom times in 24H format, and not the PM format. I checked the other thread to make sure of AMPM format, and it was correctly set. But it still shows in 24H format even after reloading :/

 

Any ideas?

So you're looking in the timezone_list.sh file?

 

You want to make sure this line is as follows:

city_time=$(date -u -j -f %s $city_epochtime +"%l:%M %p") #Create readable time expression

That's the format for AM/PM time. Note that this line is in there twice — one for the main list, and one for custom times.

Yourname likes this

Share this post


Link to post

So instead of %l, it was &1. 

 

I just pasted it from your post to the file and voila, it worked. Thanks @CarlosNZ!

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now