Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1315

FastDateParser parse method parses without considering timezone

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      Using commons-lang3 3.5
      FastDateParser parse(String ,ParsePosition ) internally calls calendar.getTime(). This method created a new Date object which will ignore the timezone and locale. Hence will default to system TZ and locale.

      The parse should happen with respect to the formatter's time zone but that is currently ignored

      Attachments

        1. learn-fast-date.zip
          11 kB
          Sudheendra

        Activity

          People

            Unassigned Unassigned
            sudheendra Sudheendra
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: