/** 저장 시 IANA 시간대를 고정하여 재시작/호스트 시간대 변경에 영향을 받지 않게 한다. */ function batchTimezone(value, existing) { const timezone = value == null ? existing || Intl.DateTimeFormat().resolvedOptions().timeZone : value; if (typeof timezone !== 'string' || !timezone) throw new Error('Batch timezone is required'); new Intl.DateTimeFormat('en-US', { timeZone: timezone }).format(); return timezone; } module.exports = { batchTimezone };