topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Tuesday March 19, 2024, 12:17 am
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Last post Author Topic: FARR Plugin: TimeZone [Update version 1.4.2]  (Read 203087 times)

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
FARR Plugin: TimeZone [Update version 1.4.2]
« on: March 12, 2009, 06:23 AM »
FARR TimeZone

This plugin will display the current time of the major cities from different time zones and up to 50 of your personal favourites.

Thank you to everyone who didn't make fun of the name! (I was a little concerned, wasn't sure if it shortened very well at all  :-[)

Update
2010 12 08 - Version 1.4.2 - Fixes the path bug that became apparent in Win7
2010 07 29 - Version 1.4.1 - Fixes bugs I introduced in version 1.4.0  :-[
2010 04 09 - Version 1.4.0 - Option to check Favourites, interface fixes, future proofing for TimeAndDate.com changes  ;)
2010 04 06 - Version 1.3.3 - Small fix because of TimeAndDate.com's change in their site.
2010 02 08 - Version 1.3.2 - Now supports all TimeAndDate.com languages and up to 50 Favourites!!
2010 01 28 - Version 1.2.2 - Finally realised that TimeAndDate.com dished up time formats based on user's location: Downloader updated.
2009 09 21 - Version 1.2.1 - Fixed the bug that kept the FARR window open for other searches.
2009 09 17 - Version 1.2.0 - Updated to use latest version of FScript.dll (See Here)
2009 09 08 - Version 1.1.0 - Added Custom URL's for "Hidden Locations"
2009 08 06 - Version 1.0.1 - Fixed Chris's AM/PM bug (finally)
2009 05 08 - Version 1.0.0 - Added logging for download problems, but apart from that :beerchug:
2009 04 29 - Version 0.9.6 - Got rid of some silly rubbish I forgot to put out last time  :-[
2009 04 24 - Version 0.9.5 - Added Load Each Launch, fixed width of settings window
2009 04 21 - Version 0.9.4 - Fixed bug with Favourites not setting correctly
2009.03.19 - Version 0.9.3 - Added locale strings, extended Favourites: See Post for details

Key Features
  • Display current world times as you type.
  • Display up to 50 favourites
  • Summer / Daylight Saving Time aware
  • Automatic Favourite checking
  • Dynamic linking to TimeAndDate.com's webpage
  • TimeAndDate carry many more Time and Date features on their website, and is well worth a visit.

Settings
SettingsWindow.pngFARR Plugin: TimeZone [Update version 1.4.2]

Default View
FARRTimeZoneResults.pngFARR Plugin: TimeZone [Update version 1.4.2]

Search Results
Screenshot - 12_02_2009 , 7_34_12 PM.pngFARR Plugin: TimeZone [Update version 1.4.2]

Installation
Download the zip file and extract it into FARR's Plugin directory.

Updating
TimeZone uses dcUpdater, which is pretty straight forward; or unzip the update file over the top of your current installation (the update should keep your current settings)

Version 1.4.2: * timezone.zip (731.69 kB - downloaded 1051 times.)

Also available at My Site

Notes
A full readme is included, but it's pretty simple: just type tz to get going...

I had real issues grabbing the data from TimeAndDate.com using xmlhttpRequest: I couldn't get the javascript to cope with the unicode characters. I now use a separate programme to download and parse the data: I think it ended up better anyway, as the data file is stored on disk so startup is quicker.

I've not been able to get this to work with the newer versions of FScript.dll, so stay with the provided version (1.8)  :-\

All comments appreciated, I'm still feeling my way around FARR a little and not sure I'm doing things correctly?

Hope you enjoy it!
« Last Edit: December 08, 2010, 04:23 AM by Perry Mowbray »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #1 on: March 12, 2009, 06:30 AM »
wow that is COOL  :up: :up: :up:
works perfectly here!

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #2 on: March 12, 2009, 06:32 AM »
wow that is COOL  :up: :up: :up:
works perfectly here!

Phew!! I'm glad about that  ;)

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #3 on: March 12, 2009, 06:34 AM »
the search function looks cool. going to try it. :Thmbsup:

I think it ended up better anyway, as the data file is stored on disk so startup is quicker.
so this can work even in off-line mode? way cool!

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #4 on: March 12, 2009, 06:38 AM »
I think it ended up better anyway, as the data file is stored on disk so startup is quicker.
so this can work even in off-line mode? way cool!

You'll need a connection to grab the data initially, but after that it's just when the time changes.

We have issues at work and being a local datafile makes the whole thing work there, so I find that aspect of it great.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #5 on: March 12, 2009, 06:46 AM »
You'll need a connection to grab the data initially, but after that it's just when the time changes.
-Perry Mowbray (March 12, 2009, 06:38 AM)

thanks, it's good to know that.. :)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #6 on: March 12, 2009, 07:00 AM »
You'll need a connection to grab the data initially, but after that it's just when the time changes.
um.. when doesnt time change?

dont you need to just grab the data to get the timezone offsets and thereafter can just use local time on the pc and offset to compute values?

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #7 on: March 12, 2009, 07:12 AM »
You'll need a connection to grab the data initially, but after that it's just when the time changes.
um.. when doesnt time change?

 :-[ Yes, I meant offset

dont you need to just grab the data to get the timezone offsets and thereafter can just use local time on the pc and offset to compute values?

That's basically right, but because the rules around daylight saving changes are so complex the offset can change each year.

I did start by using chronos's data file, which worked fine and was a completely off-line solution, but every update would involve the downloading of a 6.7Mb xml file; so I wasn't keen.

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #8 on: March 12, 2009, 09:14 AM »
Love it! Great piece of work, Perry Mowbray!

A minor thing I'd like to see, is that the Date Format fields corresponds to computer locale. I have this in the format field: 'E HH:mm' which says 'Thu 15:13' but preferable would be that it said 'tor 15:13' (locale is Norwegian).

Not a biggie, I know, but a little detail that would improve what seems otherwise pretty perfect to me ;)

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #9 on: March 12, 2009, 09:25 AM »
Looked at the source and I guess I can just change line 311 from:
Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
to:
Date.dayAbbreviations = new Array('søn','man','tir','ons','tor','fre','lør');

But maybe make this configurable in the settings somehow?

Anyway, now it's perfect :)

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #10 on: March 12, 2009, 05:51 PM »
Looked at the source and I guess I can just change line 311 from:
Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
to:
Date.dayAbbreviations = new Array('søn','man','tir','ons','tor','fre','lør');

But maybe make this configurable in the settings somehow?

Anyway, now it's perfect :)

You'd need to change the long format as well; and the months too (both short and long).

Didn't even think about locale  :-[ as it uses a 3rd Party function. I'll have a think  :-\

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #11 on: March 13, 2009, 04:25 AM »
You'd need to change the long format as well; and the months too (both short and long).

Didn't even think about locale  :-[ as it uses a 3rd Party function. I'll have a think  :-\
-Perry Mowbray (March 12, 2009, 05:51 PM)
Don't think too hard ;)

I just changed everything in the date-section, so now I'm out of suggestions...

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone
« Reply #12 on: March 13, 2009, 09:01 AM »
Don't think too hard ;)

I just changed everything in the date-section, so now I'm out of suggestions...

OK  ;), but I've made some changes and will upload a new version soon with some language files...

Thanks for the heads-up on the need though  :Thmbsup:

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #13 on: March 19, 2009, 04:37 AM »
Version 0.9.3

Prompted by TucknDar I decided it'd be neat to add locale strings so that different languages could be used.

It was a great idea, but I soon ran into Unicode problems again. Seems AutoHotKey doesn't support Unicode out of the box and neither does FARR.

I've managed to get quite a few languages happening, but I think they are only UTF8 based ones (not that I know a great deal about this); the more complex languages are just a mess  :(.

This update also extends the Favourtes settings:
Label: A label can be defined to be displayed with the TimeZone label or to Replace it.
Replace: If set, the Favourite will replace the TimeZone label, otherwise it will be concatenated with it.
Format: A separate DateTime format can be defined for each Favourite.

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #14 on: March 19, 2009, 05:11 AM »
Thanks, Perry. A strange thing happens though, for some reason the day (format 'E') is reported as Friday when in fact it's Thursday. I've also made a few changes to the Norwegian.ini which I'll email you soon.

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #15 on: March 19, 2009, 06:22 AM »
Thanks, Perry. A strange thing happens though, for some reason the day (format 'E') is reported as Friday when in fact it's Thursday. I've also made a few changes to the Norwegian.ini which I'll email you soon.

Looking at the Norwegian.ini I notice that there are only 6 days. How many days do you have in your week in Norway?  ;)

 :-[ I'll have to admit that I used GoogleTranslate and somehow it's dropped a day off! Sunday in both the full and abbreviated versions.

I'll appreciate your language file: there were some words that GT couldn't even guess at  :huh:

TucknDar

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,133
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #16 on: March 19, 2009, 06:28 AM »
Hehe, that explains it!

I've attached an updated Norwegian.ini with the best translations I could think of right now. Will update if I change my mind ;)

Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #17 on: March 19, 2009, 06:37 AM »
Hehe, that explains it!

I've attached an updated Norwegian.ini with the best translations I could think of right now. Will update if I change my mind ;)

Thanks for that, I've replaced Googles'  :Thmbsup:

If anyone else would like to edit the locale files I'd appreciate it as well  :)

spoirier

  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 3
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #18 on: April 18, 2009, 07:57 PM »
I am having a problem with this plugin.  Typing tz shows Options, Info and ReDowload but selecting Options or ReDownload do not seem to do anything.  Am I missing something?
« Last Edit: April 20, 2009, 06:46 AM by spoirier »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,896
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #19 on: April 18, 2009, 08:07 PM »
just tried it again here and it's working fine.. spoirier could you be a bit clearer about what you are trying to do and where you are getting stuck?  maybe tell us what operating system you use.

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #20 on: April 19, 2009, 03:53 AM »
This is great - nice plugin Perry....  :Thmbsup:

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #21 on: April 20, 2009, 02:05 AM »
Having slight problem - it's showing UK time same as South Africa, but we are 1 hour ahead?


Perry Mowbray

  • N.A.N.Y. Organizer
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 1,817
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #22 on: April 20, 2009, 05:47 AM »
Having slight problem - it's showing UK time same as South Africa, but we are 1 hour ahead?

That's odd. I can of course confirm that SA is 1 hour ahead of UK  ;):
Screenshot - 20_04_2009 , 8_42_23 PM.png

Try reDownloading the data?

If it's still wrong maybe you could zip up the data file and email it to me?

BTW: Double-Clicking on an entry will open the website and the time there should be the same.

one hour sounds suspiciously DSTish...
  • UK DST started on Sunday, 29 March 2009 at 1:00 AM local standard time, and
  • SA has No known DST-adjustments for year 2009

 :-\ :-\
« Last Edit: April 20, 2009, 05:58 AM by Perry Mowbray »

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #23 on: April 20, 2009, 06:36 AM »
I think I see a problem - AJ which is UK has no website and I click it, it goes to live search?

CleverCat

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,164
    • View Profile
    • Donate to Member
Re: FARR Plugin: TimeZone [Update version 0.9.3]
« Reply #24 on: April 20, 2009, 07:09 AM »
Now NZ shows same time as here! ;D