Esa fecha no es ISO-8601 compatible como se indica Keith Thompson, pero es compatible con RFC 3339, un perfil de la norma ISO 8601. Ordenar de. Ver nota al final del siguiente texto de RFC 3339:
date-time = full-date "T" full-time
NOTE: Per [ABNF] and ISO8601, the "T" and "Z" characters in this
syntax may alternatively be lower case "t" or "z" respectively.
This date/time format may be used in some environments or contexts
that distinguish between the upper- and lower-case letters 'A'-'Z'
and 'a'-'z' (e.g. XML). Specifications that use this format in
such environments MAY further limit the date/time syntax so that
the letters 'T' and 'Z' used in the date/time syntax must always
be upper case. Applications that generate this format SHOULD use
upper case letters.
NOTE: ISO 8601 defines date and time separated by "T".
Applications using this syntax may choose, for the sake of
readability, to specify a full-date and full-time separated by
(say) a space character.
me acaba de encontrar que la nueva fecha ("2012-03-02T14: 57: 05") en javascript ajustará el tiempo de acuerdo a la zona horaria, mientras que la nueva La fecha ("2012-03-02T14: 57: 05") NO ajustará la hora. – code4j
@code4j: ¿Perdí algo, o son esos lo mismo? –
Oh, Dios mío. Olvidé borrar la letra T. debe ser: nuevo Fecha ("2012-03-02T14: 57: 05"): ajuste la hora de acuerdo con la zona horaria mientras que la nueva Fecha ("2012-03-02 14:57:05") NO ajustará la time – code4j