Author [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] [EN] [ZH] [ES] [PT] [IT] [DE] [FR] [NL] [TR] [SR] [AR] [RU] Topic: Time format changed in v0.4.25-RC1 RPC API?  (Read 408 times)

0 Members and 1 Guest are viewing this topic.

Offline abit

Time format changed in v0.4.25-RC1 RPC API?
« on: December 09, 2014, 06:07:38 PM »

For example,
with v0.4.24, "last_update": "20141208T051234"
Now, "last_update": "2014-12-08T05:12:34"

Have to tweak my scripts..

EDIT:
The "blockchain_get_transaction" API changed as well.
« Last Edit: December 09, 2014, 06:27:59 PM by abit »
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12242
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BTS: xeroc
  • GitHub: xeroc
Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #1 on: December 09, 2014, 06:25:05 PM »
Can confirm this ... already updated my scripts too .. not all of them though and not pushed the commits yet ...
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline monsterer

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #2 on: December 09, 2014, 08:01:55 PM »
For example,
with v0.4.24, "last_update": "20141208T051234"
Now, "last_update": "2014-12-08T05:12:34"

Woohoo! ISO correctness :)
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

Offline vikram

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #3 on: December 09, 2014, 08:33:43 PM »
For example,
with v0.4.24, "last_update": "20141208T051234"
Now, "last_update": "2014-12-08T05:12:34"

Woohoo! ISO correctness :)

Yup. Per your original request: https://github.com/BitShares/bitshares/issues/857

Offline abit

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #4 on: December 10, 2014, 01:16:33 AM »

For example,
with v0.4.24, "last_update": "20141208T051234"
Now, "last_update": "2014-12-08T05:12:34"

Woohoo! ISO correctness :)

Yup. Per your original request: https://github.com/BitShares/bitshares/issues/857
It isn't listed in the release change log, as well as other API changes.
So it's better for (3rd-party) devs to subscribe the whole issue list?
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline vikram

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #5 on: December 10, 2014, 01:52:56 AM »

For example,
with v0.4.24, "last_update": "20141208T051234"
Now, "last_update": "2014-12-08T05:12:34"

Woohoo! ISO correctness :)

Yup. Per your original request: https://github.com/BitShares/bitshares/issues/857
It isn't listed in the release change log, as well as other API changes.
So it's better for (3rd-party) devs to subscribe the whole issue list?

I've added it to the changelog.

It is difficult to keep track of every change; we try to collect the most important ones for the changelogs. But we are not API stable yet and still may break the API at any time.

Offline abit

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #6 on: December 10, 2014, 03:15:59 AM »
Thanks for your hard work
BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline svk

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #7 on: December 10, 2014, 09:10:32 AM »
Will start updating my backend to handle this later today, hope it won't break everything.. I used moment.js to parse the old date format, might just be a case of updating my parser function I guess.
Worker: dev.bitsharesblocks

Offline abit

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #8 on: December 10, 2014, 09:44:02 AM »

Will start updating my backend to handle this later today, hope it won't break everything.. I used moment.js to parse the old date format, might just be a case of updating my parser function I guess.
Good luck :)

BTS account: abit
BTS committee member: abit
BTS witness: in.abit

Offline monsterer

Re: Time format changed in v0.4.25-RC1 RPC API?
« Reply #9 on: December 10, 2014, 09:46:59 AM »
Will start updating my backend to handle this later today, hope it won't break everything.. I used moment.js to parse the old date format, might just be a case of updating my parser function I guess.

What I did was to check the length of the string, if it was too short to be ISO standard, I parse it manually, as you have - if not, send it to the regular system date parser. That way you handle both cases :)
My opinions do not represent those of metaexchange unless explicitly stated.
https://metaexchange.info | Bitcoin<->Altcoin exchange | Instant | Safe | Low spreads

 

Google+