Project

General

Profile

Actions

Defect #7394

closed

non-standard date format is used by REST API

Added by Alex Last over 13 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
REST API
Target version:
-
Start date:
2011-01-21
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

kinda "standard" values:

    Time zone    General time zone    Pacific Standard Time; PST; GMT-08:00
    Time zone    RFC 822 time zone    -0800

sample date returned by Redmine REST API for "get projects" request:

2011-01-20T18:33:29-08:00

note: there's no "GMT" prefix before the "-08:00" part

Actions #1

Updated by Alex Last over 13 years ago

I'd suggest RFC 822 standard syntax: "-0800" instead of "-08:00".

Actions #2

Updated by Andrey Bruggemann over 13 years ago

Alexey Skor wrote:

I'd suggest RFC 822 standard syntax: "-0800" instead of "-08:00".

Use XML Schema Datetime Formats (based on ISO 8601 standard) should be better for integration, IMHO.

Actions #3

Updated by Alex Last over 13 years ago

anyway, it would be nice to have the same format in both Redmine 1.0 and 1.1.

Actions #4

Updated by Jean-Philippe Lang over 13 years ago

  • Status changed from New to Closed
  • Resolution set to Invalid

This is how Rails writes datetimes in XML.
See activesupport-2.3.5\lib\active_support\core_ext\date_time\conversions.rb:

# Converts datetime to an appropriate format for use in XML
def xmlschema
  strftime("%Y-%m-%dT%H:%M:%S%Z")
end if RUBY_VERSION < '1.9'

And it doesn't seem non-standard at all: http://www.w3.org/TR/xmlschema-2/#dateTime.

Actions #5

Updated by Alex Last almost 12 years ago

several Redmine API users have reported this bug: https://github.com/taskadapter/redmine-java-api/issues/39

I'm guessing Redmine date format was changed again?

Actions

Also available in: Atom PDF