bugfix date sctipts Apple