peter9113 / googletransitdatafeed

Automatically exported from code.google.com/p/googletransitdatafeed
0 stars 0 forks source link

maybeAddLeadingZero method with bug #350

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Open ScheduleViewer
2.Select a date with day=10 or month=October (e.g. 30/10/2012)
3.Date returned is 201201030

What is the expected output? What do you see instead?
Expected: 20121030.
Seen: 201201030

What version of the product are you using? On what operating system?
1.2.12; Mac OS X

Please provide any additional information below.
You need to fix the method maybeAddLeadingZero() on index.html. The if clause 
should be  if(number >= 10) and not  if(number > 10) because it will add a zero 
to days or months = 10 :P

Original issue reported on code.google.com by ricardov...@gmail.com on 30 Oct 2012 at 11:06

GoogleCodeExporter commented 8 years ago

Original comment by bdfer...@google.com on 26 Sep 2014 at 4:51

GoogleCodeExporter commented 8 years ago
Moved to https://github.com/google/transitfeed/issues/350

Original comment by bdfer...@google.com on 7 Oct 2014 at 7:41