OpenPEPPOL / logistics-bis

3 stars 0 forks source link

Timezone #149

Closed agrindst closed 1 year ago

agrindst commented 1 year ago

Add timezone in all formats:

JorgenErlandsson commented 1 year ago

I have not found a way to specify if TimeZone is Mandatory or Optional. I have implemented this in the WeightStatement so that I have created a rule (fatal) to check if timezone is included or not. When TimeZone is optional I will leave the rule out.

If anyone knows how to define it mandatory/optional, please let me know.

JorgenErlandsson commented 1 year ago

One more question. We have today a set of business rules that we use on periods that include fron/to date/time. Because we added the timezone these rules need to be updated. Does anybody know how? I do not have a clue how to create rules that include calculation of time based on the zone.

JorgenErlandsson commented 1 year ago

WP0 + WP4 done (except the rules....)

agrindst commented 1 year ago

@PeterLBorresen do you know of any solutions for what Jörgen is commenting about developing rules for formats with mandatory Timezone?

PeterLBorresen commented 1 year ago

Added in the structure. Will develope rules for checking its present.

PeterLBorresen commented 1 year ago

Added valudation for present of timezone. The trick is to check for prenset of "-", "+", "z" or "Z". The XSD validation check for the rest.

agrindst commented 1 year ago

Close as it is completed