Can't quote.

Laurent FRANCOIS lfrancois-ophta at worldonline.fr
Sat Nov 18 02:56:07 EST 2006


David Hampton wrote:

> Looking at the Date::Manip code, it tries a variety of methods to
> determine the time zone.  Among many other things that don't seem to
> apply to Linux, it looks for the TZ environment variable, tries running
> 'date +%Z', looks for /etc/TIMEZONE, and looks for /etc/timezone.  I
> believe its using 'date +%Z' on my system as I don't have the TZ
> variable or either listed file.

So:

$date +%Z

$ date +%Z
NCT

Wich means New Caledonia Time I presume

$ cat /etc/timezone
Pacific/Noumea

I tried :

$ echo $TZ
NCT
lof at latitude:~$ echo '(yahoo "IBM")' | gnc-fq-helper
ERROR: Date::Manip unable to determine TimeZone.
  at /usr/share/perl5/Date/Manip.pm line 3637
         Date::Manip::Date_TimeZone called at 
/usr/share/perl5/Date/Manip.pm line 678
         Date::Manip::Date_Init() called at 
/usr/share/perl5/Date/Manip.pm line 801
         Date::Manip::ParseDateString('11/17/2006 4:01pm') called at 
/usr/bin/gnc-fq-helper line 217
         main::get_quote_time('IBM', 'HASH(0x84ebffc)') called at 
/usr/bin/gnc-fq-helper line 247
         main::schemify_quote('IBM', 'HASH(0x84ebffc)', 2) called at 
/usr/bin/gnc-fq-helper line 280
         main::schemify_quotes('ARRAY(0x84ebd2c)', 'HASH(0x84ebffc)') 
called at /usr/bin/gnc-fq-helper line 369

So I tried :
$ export TZ=GMT+11
lof at latitude:~$ echo $TZ
GMT+11
lof at latitude:~$ echo '(yahoo "IBM")' | gnc-fq-helper
(("IBM" (symbol . "IBM") (gnc:time-no-zone . "2006-11-17 16:01:00") 
(last . 93.81) (currency . "USD")))

Which is much better

But unfortunetaly

$ gnucash --logdevel=6 --debug
gnucash: [M] "Found Finance::Quote version ""1.11"

with no debugging info but a dialog for an "unknown error"
when I try to fetch quotation.

Is there an other way to have gnucash more verbose?

Thanks

lof at latitude:~$


lof at latitude:~$


-- 
SIP | (131) 440-3375 at sip.freeipcall.com
Skype kuendu


More information about the gnucash-user mailing list