Welcome Guest.   Make a donation to an author on the site November 21, 2009, 07:40:59 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.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1] 2 3 4   Go Down
  Print  
Author Topic: FARR Plugin: TimeZone [Update version 1.2.1]  (Read 10281 times)
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« on: March 12, 2009, 05:23:21 AM »

FARR TimeZone

This plugin will display the current time of the major cities from different time zones.

This is my first plugin (so be gentle): but it's been working fine for me for quite a while. I was a little concerned about the name, wasn't sure if it shortened very well at all  embarassed.

Update
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 5 favourites
  • Summer / Daylight Saving Time aware.
  • 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.2.1: * timezone.zip (673.48 KB - downloaded 53 times.)
Version 1.2.0: * timezone.zip (658.66 KB - downloaded 17 times.)
Version 1.1.0: * timezone.zip (652.68 KB - downloaded 24 times.)
Version 1.0.1: * timezone.zip (667.2 KB - downloaded 50 times.)
Version 1.0.0: * timezone.zip (667.06 KB - downloaded 142 times.)
Version 0.9.6: * TimeZone.zip (668.32 KB - downloaded 40 times.)
Version 0.9.5: * timezone.zip (660.5 KB - downloaded 59 times.)
Version 0.9.4: * TimeZone.zip (658.5 KB - downloaded 40 times.)
Version 0.9.3: * TimeZone.zip (656.4 KB - downloaded 59 times.)
Verson 0.9:     * TimeZone.zip (594.05 KB - downloaded 51 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!


* Screenshot - 15_02_2009 , 9_08_16 PM.png (47.09 KB, 796x497 - viewed 111 times.)
« Last Edit: September 21, 2009, 06:03:54 AM by Perry Mowbray » Logged

Software tracking" border="0
mouser
First Author
Administrator
*****
Posts: 21,839



plarker mouser 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, 05:30:01 AM »

wow that is COOL  thumbs up thumbs up thumbs up
works perfectly here!
Logged
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 05:32:56 AM »

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

Phew!! I'm glad about that  Wink
Logged

Software tracking" border="0
lanux128
Global Moderator
*****
Posts: 4,570



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: March 12, 2009, 05: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
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 05: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

Software tracking" border="0
lanux128
Global Moderator
*****
Posts: 4,570



plarker lanux128 see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #5 on: March 12, 2009, 05: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: 21,839



plarker mouser 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, 06: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
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 06: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

Software tracking" border="0
TucknDar
Charter Member
***
Posts: 945


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, 08: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

I run the Crystal Palace Supporters Scandinavia website. My favourite software: Total Commander | HippoEdit | FARR | Miranda IM | Website-Watcher
TucknDar
Charter Member
***
Posts: 945


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, 08: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

I run the Crystal Palace Supporters Scandinavia website. My favourite software: Total Commander | HippoEdit | FARR | Miranda IM | Website-Watcher
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 04: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

Software tracking" border="0
TucknDar
Charter Member
***
Posts: 945


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, 03: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

I run the Crystal Palace Supporters Scandinavia website. My favourite software: Total Commander | HippoEdit | FARR | Miranda IM | Website-Watcher
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 08: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

Software tracking" border="0
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 03: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

Software tracking" border="0
TucknDar
Charter Member
***
Posts: 945


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, 04: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

I run the Crystal Palace Supporters Scandinavia website. My favourite software: Total Commander | HippoEdit | FARR | Miranda IM | Website-Watcher
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 05: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

Software tracking" border="0
TucknDar
Charter Member
***
Posts: 945


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, 05: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 53 times.)
Logged

I run the Crystal Palace Supporters Scandinavia website. My favourite software: Total Commander | HippoEdit | FARR | Miranda IM | Website-Watcher
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 05: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

Software tracking" border="0
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, 06: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, 05:46:19 AM by spoirier » Logged
mouser
First Author
Administrator
*****
Posts: 21,839



plarker mouser 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, 07: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: 742


Cat's Are Fun!

View Profile Give some DonationCredits to this forum member
« Reply #20 on: April 19, 2009, 02:53:17 AM »

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

I'm Left Handed - I'm in my Right Mind!
CleverCat
Supporting Member
**
Posts: 742


Cat's Are Fun!

View Profile Give some DonationCredits to this forum member
« Reply #21 on: April 20, 2009, 01:05:12 AM »

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

Logged

I'm Left Handed - I'm in my Right Mind!
Perry Mowbray
Charter Member
***
Posts: 796



Thoughtful Scribbles

plarker scribbly 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, 04: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, 04:58:33 AM by Perry Mowbray » Logged

Software tracking" border="0
CleverCat
Supporting Member
**
Posts: 742


Cat's Are Fun!

View Profile Give some DonationCredits to this forum member
« Reply #23 on: April 20, 2009, 05: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 58 times.)
Logged

I'm Left Handed - I'm in my Right Mind!
CleverCat
Supporting Member
**
Posts: 742


Cat's Are Fun!

View Profile Give some DonationCredits to this forum member
« Reply #24 on: April 20, 2009, 06:09:15 AM »

Now NZ shows same time as here! Grin
Logged

I'm Left Handed - I'm in my Right Mind!
Pages: [1] 2 3 4   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page