Welcome Guest.   Make a donation to an author on the site October 31, 2014, 12:38:45 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
The N.A.N.Y. Challenge 2011! Download 30+ custom programs!
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4 5 6 ... 9 Next   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: FARR Plugin: TimeZone [Update version 1.4.2]  (Read 76611 times)
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: March 12, 2009, 06:23:21 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  embarassed)

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  embarassed
2010 04 09 - Version 1.4.0 - Option to check Favourites, interface fixes, future proofing for TimeAndDate.com changes  Wink
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  embarassed
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


Default View


Search Results


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 579 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)  undecided

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:08 AM by Perry Mowbray » Logged

mouser
First Author
Administrator
*****
Posts: 33,611



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: March 12, 2009, 06:30:01 AM »

wow that is COOL  thumbs up thumbs up thumbs up
works perfectly here!
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: March 12, 2009, 06:32:56 AM »

wow that is COOL  thumbs up thumbs up thumbs up
works perfectly here!

Phew!! I'm glad about that  Wink
Logged

lanux128
Global Moderator
*****
Posts: 6,119



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: March 12, 2009, 06:34:16 AM »

the search function looks cool. going to try it. Thmbsup

Quote
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!
Logged

Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: March 12, 2009, 06:38:31 AM »

Quote
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.
Logged

lanux128
Global Moderator
*****
Posts: 6,119



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: March 12, 2009, 06:46:24 AM »

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

thanks, it's good to know that.. smiley
Logged

mouser
First Author
Administrator
*****
Posts: 33,611



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #6 on: March 12, 2009, 07:00:59 AM »

Quote
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?
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #7 on: March 12, 2009, 07:12:55 AM »

Quote
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?

 embarassed 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.
Logged

TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: March 12, 2009, 09:14:18 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 Wink
Logged
TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #9 on: March 12, 2009, 09:25:35 AM »

Looked at the source and I guess I can just change line 311 from:
[copy or print]
Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
to:
[copy or print]
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 smiley
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #10 on: March 12, 2009, 05:51:52 PM »

Looked at the source and I guess I can just change line 311 from:
[copy or print]
Date.dayAbbreviations = new Array('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
to:
[copy or print]
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 smiley

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

Didn't even think about locale  embarassed as it uses a 3rd Party function. I'll have a think  undecided
Logged

TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #11 on: March 13, 2009, 04:25:28 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  embarassed as it uses a 3rd Party function. I'll have a think  undecided
Don't think too hard Wink

I just changed everything in the date-section, so now I'm out of suggestions...
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #12 on: March 13, 2009, 09:01:05 AM »

Don't think too hard Wink

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

OK  Wink, 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
Logged

Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #13 on: March 19, 2009, 04:37:30 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  Sad.

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.
Logged

TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #14 on: March 19, 2009, 05:11:39 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.
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #15 on: March 19, 2009, 06:22:20 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?  Wink

 embarassed 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
Logged

TucknDar
Charter Member
***
Posts: 1,094


Advanced coder of Nowt

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #16 on: March 19, 2009, 06:28:17 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 Wink

* Norwegian.ini (0.61 KB - downloaded 264 times.)
Logged
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #17 on: March 19, 2009, 06:37:15 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 Wink

Thanks for that, I've replaced Googles'  Thmbsup

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

spoirier
Charter Member
***
Posts: 3


see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #18 on: April 18, 2009, 07:57:23 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:19 AM by spoirier » Logged
mouser
First Author
Administrator
*****
Posts: 33,611



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #19 on: April 18, 2009, 08:07:13 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.
Logged
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #20 on: April 19, 2009, 03:53:17 AM »

This is great - nice plugin Perry....  Thmbsup
Logged

If you need help - JUST ASK!
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #21 on: April 20, 2009, 02:05:12 AM »

Having slight problem - it's showing UK time same as South Africa, but we are 1 hour ahead?

Logged

If you need help - JUST ASK!
Perry Mowbray
N.A.N.Y. Organizer
Charter Member
***
Posts: 1,807



Thoughtful Scribbles

see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #22 on: April 20, 2009, 05:47:58 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  Wink:


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

 undecided undecided
« Last Edit: April 20, 2009, 05:58:33 AM by Perry Mowbray » Logged

CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #23 on: April 20, 2009, 06:36:55 AM »

I think I see a problem - AJ which is UK has no website and I click it, it goes to live search?


* Clipboard-1.jpg (41.67 KB, 370x446 - viewed 411 times.)
Logged

If you need help - JUST ASK!
CleverCat
Supporting Member
**
Posts: 1,126


Cat's Are Fun!

see users location on a map View Profile Give some DonationCredits to this forum member
« Reply #24 on: April 20, 2009, 07:09:15 AM »

Now NZ shows same time as here! Grin
Logged

If you need help - JUST ASK!
Pages: [1] 2 3 4 5 6 ... 9 Next   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.057s | Server load: 0.11 ]