Separate footer and fixed expiry date #46

Merged
ldr merged 12 commits from separate-footer into main 2026-03-17 19:48:48 +01:00
2 changed files with 4 additions and 2 deletions
Showing only changes of commit 939d59c423 - Show all commits

Fix expiry date taking effect almost 24 hours too early

Lukas Drescher 2026-03-14 00:12:31 +01:00

View file

@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fix
- Job offers now expire *at the end* of the expiry date, not immediately after midnight on the expiry date
- Show signed-in interface on the *delete expired* page
### Change
@ -19,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Rename the `footer_links` to `header_links` in the config files
- Reintroduce a footer
- Change links to point to the student association for computer science instead of the common website of both student associations
- Upgrade dependencies
## [0.4.1] (2024-01-02)

View file

@ -8,7 +8,7 @@ use std::path::{Path, PathBuf};
use actix_web::error::UrlGenerationError;
use actix_web::{HttpRequest, Result};
use chrono::{TimeZone, Timelike};
use chrono::{NaiveTime, TimeZone, Timelike};
use error::DeleteError;
use lettre::Address;
use log::{debug, error, info, warn};
@ -415,7 +415,7 @@ impl JobOffer<PathBuf> {
});
use chrono::Offset as _;
let now = crate::util::now();
let now = crate::util::now().with_time(NaiveTime::MIN).unwrap();
let now_date = now.with_timezone(&now.offset().fix());
now_date > expires_after