Skip to content

prevent tampering with timestamps #17

@set5think

Description

@set5think

This has caused me a great deal of pain in the last week (was thinking it was a limitation on the Zuora side):

https://github.com/sportngin/active_zuora/blob/master/lib/active_zuora/fields/date_time_field.rb#L11-14

It should just use %Y-%m-%dT%H:%M:%S-08:00. This will add the 00:00:00 Timestamp even if one doesn't exist, but at least it won't overwrite timestamps if they're provided.

Also, usage startdatetime and enddatetime are good examples of user-set attributes that are not just dates, but a full timestamp.

I can submit a patch, but there are no tests for that stuff, so I will spend some time over the weekend adding a test for that, hopefullly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions