iothub/device/iot-device-client/src/main/java/com/microsoft/azure/sdk/iot/device/twin/ParserUtility.java [292:302]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static String getUTCDateStringFromDate(Date date) throws IllegalArgumentException
    {
        if (date == null)
        {
            throw new IllegalArgumentException("The provided date cannot be null");
        }

        OffsetDateTime offsetDateTime = date.toInstant().atOffset(ZoneOffset.UTC);

        return offsetDateTime.format(UTC_DATETIME_FORMATTER);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



provisioning/provisioning-service-client/src/main/java/com/microsoft/azure/sdk/iot/provisioning/service/configs/ParserUtility.java [292:302]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    public static String getUTCDateStringFromDate(Date date) throws IllegalArgumentException
    {
        if (date == null)
        {
            throw new IllegalArgumentException("The provided date cannot be null");
        }

        OffsetDateTime offsetDateTime = date.toInstant().atOffset(ZoneOffset.UTC);

        return offsetDateTime.format(UTC_DATETIME_FORMATTER);
    }
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



