java.lang.IllegalArgumentException: Invalid format: "P1M"

Stack Overflow | stackUnderflow | 6 months ago
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Parsing ISO 8601 duration format to Joda duration - IllegalArgumentException

    Stack Overflow | 6 months ago | stackUnderflow
    java.lang.IllegalArgumentException: Invalid format: "P1M"

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Invalid format: "P1M"

      at org.joda.time.convert.StringConverter.getDurationMillis()
    2. Joda-Time
      1. org.joda.time.convert.StringConverter.getDurationMillis(
      2. org.joda.time.base.BaseDuration.<init>(
      3. org.joda.time.Duration.<init>(
      4. org.joda.time.Duration.parse(
      4 frames