Separate footer and fixed expiry date #46
2 changed files with 4 additions and 2 deletions
Fix expiry date taking effect almost 24 hours too early
commit
939d59c423
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue