Skip to content

ScheduledEnqueueTimeUtc not working in java api #440

Description

@jensrohloff

the ScheduledEnqueueTimeUtc isn't working. as default jackson formats the date to epoch timestamp. azure requires it to be RFC2616 (http://msdn.microsoft.com/en-us/library/azure/hh780742.aspx)
For example, “Sun, 06 Nov 1994 08:49:37 GMT”. It is required to set the timezone to GMT as well.

mapper = new ObjectMapper();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz");
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
mapper.setDateFormat(simpleDateFormat);

the BrokerPropertiesMapper.java should use te dateFormat for both methods.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions