Skip to content

Conversation

@shimsangjoon
Copy link
Contributor

This PR tries to solve issue:

#14023

by not adding UTCDate, UTCTime tags to study chapter PGNDumps.

Related forum topic:
https://lichess.org/forum/lichess-feedback/why-games-dates-always-change-to-the-current-after-downloading-chaptersstudies?page=1

@kraktus
Copy link
Member

kraktus commented Dec 30, 2023

Thanks for the PR!

I'd make more sense to remove those only if a Date tag is already present and potentially conflicting, as said pointed: https://lichess.org/forum/lichess-feedback/why-games-dates-always-change-to-the-current-after-downloading-chaptersstudies#6

@shimsangjoon
Copy link
Contributor Author

Makes sense. Will update PR asap

@shimsangjoon
Copy link
Contributor Author

I made an update so the UTCDate and UTCTime tags gets exported if the Date tag does not exist.

The point about conflicting with an already existing Date tag I'm not sure how to handle or if we should?
The forum topic cases contains studies/chapters where the Date tags are not precise: [Date "1983.??.??"]

@kraktus
Copy link
Member

kraktus commented Dec 30, 2023

Yeah I agree simply checking for the date tag is enough

@ornicar ornicar merged commit fa76ff8 into lichess-org:master Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants