Commits

Author Commit Message Labels Comments Date
Adeel Khan
Fix last commit to account for negative time zone offsets.
Adeel Khan
Fix last commit to account for negative time zone offsets.
Adeel Khan
Fix a bug with the timezone offset format when unparsing dates. ISO 8601 syntax requires the timezone offset format to be "+HH" or "+HHMM" or "+HH:MM" [1]. Currently the unparser uses something like the second format, but the HH portion turns into H instead of 0H if the hour is less than 10 (e.g. +200 instead of +0200). This commit fixes this. [1] http://en.wikipedia.org/wiki/ISO_8601#Time_zone_designators
Comments 2
Peter Hosey
Make the parser tester show parsed dates in GMT, not the local time zone.
Peter Hosey
Fix implicit-cast warnings by using the correct formatter and explicitly casting to its type. Sparks submitted a patch for this, but it approached this differently, by explicitly casting to unsigned int and leaving the formatters as they were. This change solves the problem the compiler was warning about, which was the risk of truncating numbers that are out of unsigned int range.
Peter Hosey
Changed compiler to Clang.
Peter Hosey
Initialize more variables, fixing some warnings. Thanks to Sparks for this patch.
Peter Hosey
Fixed a couple of 64-to-32 warnings that occurred when building for i386.
Peter Hosey
More warnings.
Peter Hosey
Fix all warnings.
Peter Hosey
Replacing -Wall with the Hoseyification suite of warning flags.
Peter Hosey
Pass a date, not the ISO 8601 date formatter (oops), to the time formatter.
Peter Hosey
Added targets to the Makefile to run the Clang Static Analyzer on the date formatter.
Peter Hosey
When not parsing strictly, allow a space before the time-zone specification, as expected by NSDate's +dateWithString: and -initWithString: methods and emitted by its -description method.
wildwobby
Variable set, but never read, and is set to something else a few lines down
Peter Hosey
Added tag 0.5 for changeset 0082342cb706
Peter Hosey
Added tag 0.4 for changeset e190de54c507
Tags
0.5
Peter Hosey
Added the 0.5 (and 0.4—oops) changes to the readme file's version history.
Peter Hosey
Added a test for 2006-032, which should be easier to check as an ordinal date that isn't the first day of the year.
Peter Hosey
Fix week dates for certain weekdays. One of these subtractions gave a negative result for certain weekdays, and since all of these variables were unsigned, that change to the interpretation of the result threw a comparison out of whack. The fix is simply to make all of these signed integers.
Peter Hosey
Massive rewrite. The parser and unparser are now together in a single NSFormatter subclass, and are now based on NSCalendar and NSDateComponents instead of NSCalendarDate. The parser remains more or less unchanged. Two-thirds of the unparser is now based on NSDateFormatter, which handles that portion of ISO 8601 string-formatting more or less for free; the part not handled for free is week dates (because NSCalendar has a different idea of when the week starts), and that unparser also remains more or less unchanged.
Peter Hosey
Add the output of unparse-date to the expected-results file.
Peter Hosey
Don't include the time when testing the unparser.
Peter Hosey
Changed how we test the unparser results: Consider the expected results to be the “old” version, and refer to them in the test_files subdirectory, where they reside.
boredzo
We don't need this : in the time zone.
boredzo
This doesn't need to be versioned.
boredzo
Missed this one.
Tags
0.4
boredzo
Moving all these test files to their own folder.
boredzo
This should be YES for most tests.
boredzo
Added support for a custom time separator in the unparser.
  1. Prev
  2. Next