Uploaded image for project: 'Axis2-C'
  1. Axis2-C
  2. AXIS2C-1384

axutil_date_time_get_date is misnamed, it should be axutil_date_time_get_day

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.0
    • 1.7.0
    • util
    • None
    • all

    Description

      when decoding a date, in axutil_date_time.h there is a method for extracting year, month, etc, but not for "day".

      However, there is a method named: axutil_date_time_get_date( ... )

      If you look at the implementation of this in date_time.c, it's actually extracting the day:

      AXIS2_EXTERN int AXIS2_CALL
      axutil_date_time_get_date(
      axutil_date_time_t *date_time,
      const axutil_env_t *env)
      {
      return (date_time->day);
      }

      I think this function should be named axutil_date_time_get_day

      Attachments

        1. axutil_date_time.h
          11 kB
          Patrick Cosmo
        2. date_time_test.c
          4 kB
          Patrick Cosmo
        3. date_time.c
          23 kB
          Patrick Cosmo
        4. rand.c
          2 kB
          Patrick Cosmo

        Activity

          People

            Unassigned Unassigned
            pcosmo Patrick Cosmo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: