Jump to content

timestamp on AddTransaction


Recommended Posts

I have WHMCS set on localisation to YYYY-mm-DD

In our API call which has been working for years,  as YYYY-MM-DD. I upgraded to PHP 8.2 FPM and WHMCS 8.13.1 (from 8.11), and now the date in the DB is the date of the API call and not the date I am sending in the postdata. 

I tried changing the date format in settings/general/localisation

I have timezone in php set to Africa/Johannesburg

 

Am I chasing my own tail or is there a regression

 

I see in the changelog there is Correct date timestamp of refund transactions (Also known as: CORE-19688)

thanks

Link to comment
Share on other sites

17 minutes ago, WHMCS John said:

Hi @Walking with me,

1. Which API command are you experiencing this with?

2. Which parameter is affected? Please can you provide an example of the current data and for comparison the format you were expecting.

1.  AddTransaction

2. the date sent is now current date time and not value sent 

 

 

Link to comment
Share on other sites

1 hour ago, WHMCS John said:

Hi @Walking with me,

1. Which API command are you experiencing this with?

2. Which parameter is affected? Please can you provide an example of the current data and for comparison the format you were expecting.

Post Data: array(11) {
  ["identifier"]=>
  string(32) "....1"
  ["secret"]=>
  string(32) "C....O"
  ["action"]=>
  string(14) "AddTransaction"
  ["responsetype"]=>
  string(4) "json"
  ["userid"]=>
  string(1) "1"
  ["amountin"]=>
  string(4) "1.00"
  ["date"]=>
  string(10) "2025-07-03"
  ["credit"]=>
  string(4) "true"
  ["description"]=>
  string(15) "ImportST: blha2"
  ["transid"]=>
  string(46) "1098B5B1-856B-1B0E-18A6-657B2FC10318"
  ["paymentmethod"]=>
  string(12) "banktransfer"
}

tblaccounts:

id    userid    currency    gateway    date    description    amountin    fees    amountout    rate    transid
2257    1    0    banktransfer    2025-07-07 17:45:48    ImportST: blha2    1.00    0.00    0.00    1.00000    1098B5B1-856B-1B0E-18A6-657B2FC10318

tblconfiguration

id    setting    value    created_at    updated_at
15    DateFormat    YYYY-MM-DD    NULL    2025-07-06 22:05:10

 

the date is the date of the api call not the transaction date, worked fine in previous versions.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated