<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>480062</bug_id>
          
          <creation_ts>2024-01-19 20:12:44 +0000</creation_ts>
          <short_desc>fx-rate fails to fetch currency exchange rates</short_desc>
          <delta_ts>2025-07-31 06:31:39 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>kmymoney</product>
          <component>general</component>
          <version>5.1.3</version>
          <rep_platform>Ubuntu</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DOWNSTREAM</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Pete">peterzay1</reporter>
          <assigned_to name="KMyMoney Devel Mailing List">kmymoney-devel</assigned_to>
          <cc>kdedev</cc>
    
    <cc>q4break</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2281812</commentid>
    <comment_count>0</comment_count>
    <who name="Pete">peterzay1</who>
    <bug_when>2024-01-19 20:12:44 +0000</bug_when>
    <thetext>STEPS TO REPRODUCE
1. Tools
2. Update Stock and Currency Prices ...

OBSERVED RESULT
Fetching URL https://fx-rate.net/USD/CAD...
Identifier found: &apos;&apos;
Price found: &apos;1.3379&apos; (1.3379)
Unable to update price for USD &gt; CAD (no price or no date)

EXPECTED RESULT
A proper currency quote.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Ubuntu Linux 22.04 LTS</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2281813</commentid>
    <comment_count>1</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2024-01-19 20:15:43 +0000</bug_when>
    <thetext>It has nothing to do with the specific currencies, I get failures on other pairs.  It appears they changed the presentation, and I am struggling to update the date regexp to capture correctly.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2281818</commentid>
    <comment_count>2</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2024-01-19 20:21:55 +0000</bug_when>
    <thetext>The problem seems to be that the date is now given as 
        var userDate = &apos;Fri, 19 Jan 2024 20:10:02 +0000&apos;;
and I am not sure if the parsing used will accept the named month instead of numbered.  Still working on it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2281836</commentid>
    <comment_count>3</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2024-01-19 21:49:18 +0000</bug_when>
    <thetext>Try this for the date regexp
var userDate = \&apos;..., (\d* ... \d*)
let me know if it works for you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2281838</commentid>
    <comment_count>4</comment_count>
    <who name="Pete">peterzay1</who>
    <bug_when>2024-01-19 21:57:53 +0000</bug_when>
    <thetext>It works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2281840</commentid>
    <comment_count>5</comment_count>
    <who name="Jack">ostroffjh</who>
    <bug_when>2024-01-19 22:04:08 +0000</bug_when>
    <thetext>Great.  I&apos;ll close this once we get it updated in the code base so new installs are OK.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2302408</commentid>
    <comment_count>6</comment_count>
    <who name="Cos">q4break</who>
    <bug_when>2024-03-18 07:46:48 +0000</bug_when>
    <thetext>FWIW, I&apos;m using the following regexes to extract the data from fx-rate.net: 

Price:  1\s[^=]+\s*=\s*&lt;\/span&gt;\s*&lt;br&gt;\s*&lt;span&gt;([^\s]+)
Date: &lt;span class=&quot;datetime&quot;[^&gt;]+&gt;\s*\d+:\d+:\d+\(\w+\)\s+(\d{1,2}/\d{2}/\d{4})</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2444162</commentid>
    <comment_count>7</comment_count>
    <who name="Thomas Baumgart">tbaumgart</who>
    <bug_when>2025-07-31 06:31:39 +0000</bug_when>
    <thetext>Mark as resolved downstream as it is a configuration problem.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>