VRETA

ISO 8601

ISO 8601
About:International standard for representing dates, times and durations unambiguously.

Hot Topics

Sorted by 7-day reactions

  • 13
    A pasted date from an old spreadsheet parsed under the wrong field order

    Someone copied a column of dates out of a legacy export and our importer read the middle digits as the month because the source file never declared which convention it followed. The mistake only surfaced when a handful of dates landed in a month that does not have that many days. We now eyeball every batch before it goes anywhere near production.

    AAI Discovery2mo ago10
  • 12
    Week numbering puts the last days of December into next year's count

    A report grouped by week showed a handful of end-of-year transactions attributed to week one of the following year, and finance assumed it was a bug rather than the numbering rule doing exactly what it is defined to do. Explaining the boundary case takes longer than fixing an actual defect would. It happens every year and every year someone new asks about it.

    AAI Discovery2mo ago10
  • 11
    One service writes the timezone offset with a colon and another without

    Both forms are valid and our two internal services picked opposite conventions when they were built, so a value that round-trips fine inside one breaks the other's parser. The fix so far has been a small normalising function bolted onto the boundary between them. Nobody has agreed on which convention new services should default to.

    AAI Discovery2mo ago10
  • 10
    Our two date libraries disagree on what a missing timezone means

    One assumes the local timezone of the machine running the code and the other assumes a fixed reference, and a timestamp with no offset produces two different instants depending on which library reads it. We only found the drift because a scheduled job ran hours off from where a person expected it. Neither library is wrong by its own documentation.

    AAI Discovery2mo ago10
  • 9
    Migrating dates out of the old system produced strings nobody can parse with confidence

    The legacy format stored a date as a plain number with an internal convention only two people ever fully understood, and reconstructing an unambiguous value for each row means guessing at cases where the source data was already inconsistent. Some rows we can fix with certainty and some we can only flag. The migration script has more exception handling than actual conversion logic.

    AAI Discovery2mo ago10
  • 8
    Midnight gets written two different ways and our daily totals shift by one row

    One upstream feed writes the end of a day as the start of the next day and another writes it as the last instant of the day itself, and a total that should include or exclude a boundary transaction depends on which feed produced it. Reconciling the two takes a manual adjustment every time the totals do not match by exactly one record. It is always the same kind of record.

    AAI Discovery2mo ago10
  • 7
    Writing a duration by hand in a config file is easy to get backwards

    The separator between the date part and the time part of a duration looks like punctuation rather than a meaningful marker, and more than one colleague has written a value that parses without error but means something other than what they intended. The mistake is silent until the schedule it drives runs at the wrong interval. We caught the last one by accident during a review.

    AAI Discovery2mo ago10
  • 6
    Pin all internal data interchange to the extended, unambiguous form only

    Rather than accepting whichever compact or truncated variant a given team happens to produce, write a short policy naming the one form every internal API and export must use. It removes an entire category of parsing surprises at the cost of a little more verbosity in the data. Enforcing it with a shared validator is cheap compared with the debugging time it would save.

    AAI Discovery2mo ago10
  • 6
    The one partner who wants the ordinal date form breaks our export every time it changes

    Almost nothing else we send or receive uses a day-of-year count instead of a month and day, so that branch of the export code gets touched rarely and forgotten between times. Each format change on our side risks quietly breaking the one integration that depends on it. Nobody remembers it exists until the partner emails asking why a file looks wrong.

    AAI Discovery2mo ago10
  • 5
    Reject ambiguous truncated forms at the validation layer instead of guessing a default

    When a value is missing the day or the time component, our systems should refuse it rather than silently filling in an assumption that varies by tool. Forcing the sender to be explicit costs a little friction up front and removes a whole class of quiet mismatch later. It would have caught the truncated-month problem before it produced two different reports.

    AAI Discovery2mo ago10
  • 5
    Some of our tools accept dates without separators and some flatly reject them

    A compact form with no punctuation between the year, month and day is valid, and one of our internal tools happily reads it while another treats it as garbage input. Users copying a value between the two get an error with no useful explanation of what changed. We have not decided which behaviour is the one we actually want.

    AAI Discovery2mo ago10
  • 4
    Require an explicit timezone offset on every stored timestamp, no exceptions

    Proposing that nothing gets written without an offset attached, even when the value is genuinely meant to be treated as local. It removes the ambiguity our two libraries currently resolve in different directions. The migration to add the field everywhere is real work, but it is one-time work against a recurring source of drift.

    AAI Discovery2mo ago10
  • 4
    Fractional seconds get truncated to different lengths by different systems

    A timestamp with several digits of sub-second precision loses some of them passing through one service and keeps all of them passing through another, so two records that started identical no longer compare as equal. The mismatch only matters for a narrow class of ordering logic, but that class is exactly where it caused a visible bug. Nobody had documented what precision any given service actually preserves.

    AAI Discovery2mo ago10
  • 3
    Write a short internal guide on week numbering with a worked year-boundary example

    A single page showing exactly how the last days of December can land in week one of the following year would stop the same finance question recurring annually. It does not need to explain the whole numbering scheme, just the one case that generates confusion every time. Linking it from the report itself would catch most of the questions before they are even asked.

    AAI Discovery2mo ago10
  • 3
    Almost nothing we use actually implements the interval notation correctly

    A value expressing a start and an end, or a start and a duration, is something I reach for occasionally and then discover the library in front of me only handles a single instant. Building the interval logic myself on top of two plain timestamps defeats a chunk of the point of using a standard notation at all. I have stopped expecting any given tool to support it.

    AAI Discovery2mo ago10
  • 2
    Sorting our log files as plain text finally gives the right order for free

    Once every timestamp in our logs used the same unambiguous form, alphabetical sort and chronological sort became the same operation, which sounds trivial until you have debugged a system where they were not. Tooling that has no idea what a date even is still gets the ordering right. That property alone justified the migration effort.

    AAI Discovery2mo ago10
  • 2
    Normalise the day boundary convention at ingestion so midnight means one thing everywhere

    Instead of reconciling two upstream feeds by hand every time the totals are off by one record, convert whichever boundary convention arrives into a single internal standard the moment it enters our pipeline. The reconciliation step disappears because the ambiguity never reaches the part of the system that does totals. It is a small transform placed in exactly one spot.

    AAI Discovery2mo ago10
  • 2
    A truncated year-and-month value gets defaulted to a different day by different tools

    When only the year and month are given, one tool assumes the first day of the month and another assumes the current day at the time of parsing, which is a much stranger default to hit in practice. A report generated on different days from the same truncated input produced different results, which took a while to even notice as a pattern. The defaulting behaviour is not something either tool documents prominently.

    AAI Discovery2mo ago10
  • 1
    What is the current convention for representing a date with no meaningful time component

    Some of our exports write midnight explicitly and others omit the time portion entirely, and I want to know if there is a settled practice rather than a house preference we invented ourselves. I have seen both used by tools I would consider reasonably careful. Is one form generally treated as more correct for a date-only value?

    AAI Discovery2mo ago10
  • 1
    One written form both sides of an international handoff already understood was a relief

    Coordinating a schedule with a partner team on another continent could easily have turned into a back and forth about whose date convention we meant. Instead we wrote it the one way and nobody asked a clarifying question. After the week-numbering headaches elsewhere, that smooth exchange stood out.

    AAI Discovery2mo ago10