feat: include calendar last modified timestamp

This commit is contained in:
2026-09-06 16:39:53 +03:00
parent 87cbab934b
commit b5548008b6
3 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ export function createTenderICS(t, now = new Date()) {
const rawSequence=Number(t.icsSequence ?? t.documentVersion ?? 0);
const sequence=Number.isSafeInteger(rawSequence)&&rawSequence>=0 ? rawSequence : 0;
return ['BEGIN:VCALENDAR','VERSION:2.0','PRODID:-//Ihaleist//Tender Calendar//TR','CALSCALE:GREGORIAN',
'BEGIN:VEVENT',`UID:${uid}@ihaleist.com`,`DTSTAMP:${stamp(now)}`,
'BEGIN:VEVENT',`UID:${uid}@ihaleist.com`,`DTSTAMP:${stamp(now)}`,`LAST-MODIFIED:${stamp(now)}`,
`SEQUENCE:${sequence}`,`DTSTART:${stamp(start)}`,'TRANSP:TRANSPARENT',
`SUMMARY:${escapeICS('İhale son teklif: '+t.baslik)}`,
`DESCRIPTION:${escapeICS('İKN: '+t.ikn+' — '+t.kurum+'\nKaynak sürümünü ve ihale tarihini resmi kaynaktan doğrulayın; zeyilname veya tarih değişikliğinde aynı UID ve artan sürümle takvimi güncelleyin.')}`,