google / transitfeed

A Python library for reading, validating, and writing transit schedule information in the GTFS format.
https://github.com/google/transitfeed/wiki
Apache License 2.0
679 stars 254 forks source link

maybeAddLeadingZero method with bug #350

Open bdferris opened 9 years ago

bdferris commented 9 years ago

From ricardov...@gmail.com on October 30, 2012 16:06:54

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: http://code.google.com/p/googletransitdatafeed/issues/detail?id=350

bdferris commented 9 years ago

From bdfer...@google.com on September 26, 2014 09:51:53

(No comment was entered for this change.)

Labels: Language-Python