Git Komut Rehberi & Terminal Asistanı
Sıfırdan Yeni Bir Depo Başlatın:
Mevcut Bir Git Deposu veya Klasörü Gönderin:
Hataları Geri Alma, İptal & Temizlik:
Son commit'i geri al (yapılan değişiklikleri korur):
git reset --soft HEAD~1
Yapılan yerel değişiklikleri iptal et (çalışma ağacını temizler):
git restore .
Takip edilmeyen gereksiz dosyaları sil:
git clean -fd
Değişiklikleri geçici sakla ve geri getir (stash):
git stash git stash pop
Dal (Branch) ve Sürüm Etiketleri:
Yeni dal aç ve geçiş yap:
git checkout -b yeni-ozellik git push -u origin yeni-ozellik
Sürüm etiketi (tag) oluştur ve gönder:
git tag -a v1.0.0 -m "Sürüm 1.0.0" git push origin --tags
fix: keep .skf ZIP mtime within DOS date range in all timezones
The .skf writer pinned the ZIP entry mtime to a UTC-based epoch
(new Date("1980-01-01T00:00:00.000Z")). fflate encodes ZIP mtimes as
DOS dates using local-time getters and rejects years outside 1980-2099.
In any timezone west of UTC that instant is 1979-12-31 locally, so
exporting or saving a project (e.g. Save to shared) threw
"date not in range 1980-2099".
Build the pinned epoch from local components (new Date(1980, 0, 1)) so
the year is always 1980 regardless of timezone. Add a regression test
that exports under Etc/GMT+12 and round-trips the project.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
f0e61cb74c
commit
c931a55616
@@ -602,7 +602,11 @@ function activeProjectIndexes(state: SkfStateV1) {
|
||||
|
||||
function zipAsync(files: AsyncZippable) {
|
||||
return new Promise<Uint8Array>((resolve, reject) => {
|
||||
zip(files, { level: 6, mtime: new Date("1980-01-01T00:00:00.000Z") }, (error, data) => {
|
||||
// fflate encodes the ZIP entry mtime as a DOS date using local-time getters and
|
||||
// rejects years outside 1980-2099. A UTC-pinned "1980-01-01T00:00:00Z" rolls back
|
||||
// to 1979 in any timezone west of UTC, so build the epoch from local components to
|
||||
// keep the year at exactly 1980 everywhere.
|
||||
zip(files, { level: 6, mtime: new Date(1980, 0, 1) }, (error, data) => {
|
||||
if (error) reject(error);
|
||||
else resolve(data);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user