View Issue Details

IDProjectCategoryView StatusLast Update
0005862Talerotherpublic2019-12-20 18:11
ReporterFlorian Dold Assigned ToFlorian Dold Resolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeveritytweakReproducibilityhave not tried
Status closedResolutionfixed 
Product Versiongit (master) 
Target Version0.6Fixed in Version0.6 
Summary0005862: date format is weird and unnecessary
DescriptionParsing and creating it is annoying. There is no real reason for the weird

  stamp_expire: "/Date(123234)/"

shenanigans.

Either we shoud use a number, a string, or some actual JSON wrapper, like

  stamp_expire: { timestamp_sec: 1234 }

which would be easier to parse and generate, and convey the same information with less weirdness.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2019-09-06 00:12

manager   ~0014868

Last edited: 2019-09-16 07:17

Hmm. I thought the current "/Date(X)/" had been created based on quite *extensive* discussions between us, with you basically pushing for exactly this format for various JS-related reasons (and other constraints).
Addendum: [1] https://weblogs.asp.net/bleroy/dates-and-json was the original reasoning.

Reasons why we don't just have a number is that it is unclear: is it a time?, also relative time vs. absolute time, and which unit (seconds, nanoseconds, etc.).

Reasons to not use the nested JSON like timestamp_sec include it being even longer, and not really simplifying parsing.

Florian Dold

2019-12-20 01:27

manager   ~0015194

New date format has been implemented (in GNUnet util) and documented (https://docs.taler.net/core/api-common.html#timestamps).

Some test cases in the merchant are still failing because of the change (see 0005997), but closing this one because that's mainly due to the inadequacy of these test cases.

Issue History

Date ModifiedUsernameFieldChange
2019-08-30 14:08Florian DoldNew Issue
2019-09-04 13:43Florian DoldDescription Updated
2019-09-04 13:52Florian DoldDescription Updated
2019-09-04 13:56Florian DoldDescription Updated
2019-09-06 00:12Christian GrothoffNote Added: 0014868
2019-09-06 00:12Christian GrothoffSeverityminor => tweak
2019-09-06 00:12Christian GrothoffStatusnew => feedback
2019-09-16 07:14Christian GrothoffTarget Version => 0.6
2019-09-16 07:17Christian GrothoffNote Edited: 0014868
2019-11-14 21:35Christian GrothoffTarget Version0.6 => 0.7.1
2019-11-29 12:04Christian GrothoffProduct Version0.6 => git (master)
2019-11-29 12:04Christian GrothoffTarget Version0.7.1 => 0.6
2019-12-18 22:26Christian GrothoffAssigned To => Florian Dold
2019-12-18 22:26Christian GrothoffStatusfeedback => assigned
2019-12-20 01:27Florian DoldStatusassigned => informing
2019-12-20 01:27Florian DoldResolutionopen => fixed
2019-12-20 01:27Florian DoldNote Added: 0015194
2019-12-20 08:47Christian GrothoffFixed in Version => 0.6
2019-12-20 18:11Christian GrothoffStatusinforming => closed