date_time1Add my vote for this tag create new tag
, view all tags

LocalCityTimePluginDev Discussion: Page for developer collaboration, enhancement requests, patches and improved versions on LocalCityTimePlugin contributed by the TWikiCommunity.
• Please let us know what you think of this extension.
• For support, check the existing questions, or ask a new support question in the Support web!
• Please report bugs below

Feedback on LocalCityTimePlugin

This is the place to discuss the LocalCityTimePlugin development.

-- PeterThoeny - 25 Apr 2001

For some unknown reason, the plugin at TWiki.org can't read any page at www.bsdi.com, like http://www.bsdi.com/date?Europe/Zurich. So a TWiki topic containing %LOCALCITYTIME{"Europe/Zurich"}% times out after some time. Any ideas???

-- PeterThoeny - 14 Jul 2001

Maybe it would be a good idea to avoid an Internet lookup just to calculate the time of day - seems a bit heavyweight. Perhaps there is a CPAN module that does this, which could be downloaded to support a version of this plugin that doesn't depend on bsdi.com?

-- RichardDonkin - 18 Aug 2001

This plugin is currently broken since the originating script URL delivering the time changed from http://www.bsdi.com/date changed to http://www.bsdi.com/xdate

BSDI / Wind River is currently moving all www.bsdi.com content to www.windriver.com, the /date script disappeared with that. BSDI folks have been very responsive to my request and brought back the script, although for technical reasons with a different URL. I will update the plugin soon. In the mean time you can fix the plugin by replacing all occurances of /date with /xdate.

-- PeterThoeny - 25 Apr 2002

After installing this plugin, I replaced all occurences of "/date" with "/xdate" in the "LocalCityPlugin.pm" file. Even then it's not working. When I type in

 LOCALCITYTIME{"Europe/Zurich"}, enclosed with % signs 

I get an error message: content-type: text/plainERROR: TWiki::Net::getUrl connect: Connection refused (Europe/Zurich) What do I do?

-- SaumitraBhaumik - 03 Feb 2003

The www.bsdi.com server is decommissioned, with that, the Date and Time gateway is no longer available. I inherited the script from the BSD folks (thanks Jeff smile ), enhanced it and installed it here on TWiki.org, http://TWiki.org/cgi-bin/xtra/tzdate

New Plugin version is posted with these changes:

  • Reflect new URL and format of gateway
  • Choice of faster internal date calculation based on BSD / Linux style zoneinfo files and date command

The related LocalTimePlugin depends on an extra Perl module.

-- PeterThoeny - 24 Nov 2003

Can you distribute that script as part of the plugin? That seems preferable to hitting the TWiki server with unrelated traffic.

-- MartinCleaver - 24 Nov 2003

There is no need because the Plugin contains now part of that script (setting timezone based on zoneinfo files and calling the date command)

-- PeterThoeny - 24 Nov 2003

checked .zip into CVSplugins:LocalCityTimePlugin

-- WillNorris - 24 Nov 2004

I'm getting a lot of view: Use of uninitialized value in concatenation (.) or string at /var/www/brightcarvings.com/TWiki/lib/TWiki/Plugins/LocalCityTimePlugin.pm

in my apache logs. I tried to fix it but it doesn'treally make a lot of sense to me (where it's trying to rstore $ENV from $saveTZ). My limited knowledge of Perl doesn't seem to be able to fix it

-- ChrisHogan - 01 Dec 2006

Edit | Attach | Watch | Print version | History: r11 < r10 < r9 < r8 < r7 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r11 - 2006-12-01 - ChrisHogan
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.