Skip to content

Commit

Permalink
Update calendar times to spring
Browse files Browse the repository at this point in the history
  • Loading branch information
kylerchin committed Apr 2, 2024
1 parent 9f22752 commit a120759
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Empty file added lib.rs
Empty file.
20 changes: 9 additions & 11 deletions src/static/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,11 +805,11 @@ async fn main() {
tuesday: true,
wednesday: true,
thursday: true,
friday: true,
saturday: true,
sunday: true,
start_date: chrono::naive::NaiveDate::from_ymd_opt(2023,09,25).unwrap(),
end_date: chrono::naive::NaiveDate::from_ymd_opt(2023,12,15).unwrap(),
friday: false,
saturday: false,
sunday: false,
start_date: chrono::naive::NaiveDate::from_ymd_opt(2024,04,01).unwrap(),
end_date: chrono::naive::NaiveDate::from_ymd_opt(2023,06,14).unwrap(),
}).unwrap();

calendarwriter.serialize(gtfs_structures::Calendar {
Expand All @@ -821,8 +821,8 @@ async fn main() {
friday: true,
saturday: false,
sunday: false,
start_date: chrono::naive::NaiveDate::from_ymd_opt(2024,1,8).unwrap(),
end_date: chrono::naive::NaiveDate::from_ymd_opt(2024,3,22).unwrap(),
start_date: chrono::naive::NaiveDate::from_ymd_opt(2024,04,01).unwrap(),
end_date: chrono::naive::NaiveDate::from_ymd_opt(2024,06,14).unwrap(),
}).unwrap();

let calendar_csv = String::from_utf8(calendarwriter.into_inner().unwrap()).unwrap();
Expand All @@ -833,10 +833,8 @@ async fn main() {
let mut calendardateswriter = Writer::from_writer(vec![]);

let cancellations = [
//MLK JR DAY
((2024,01,15), "monthurs"),
//President's day
((2024,02,19), "monthurs")
//Memorial day
((2024,05,27), "monthurs")
];

for cancel in cancellations {
Expand Down

0 comments on commit a120759

Please sign in to comment.