[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/tech/ - Technical SEO

Site architecture, schema markup & core web vitals
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1793162637239.jpg (194.54 KB, 1024x1024, img_1793162628545_t16nbbbd.jpg)ImgOps Exif Google Yandex

584cc No.2404

jetlag looks pretty decent for catching those stupid toISOString() bugs where everything breaks at 9pm in la. it basically wraps your test command so you don't have to manually mess with locales or offsets. caught some nasty stuff like:
> Code that assumes offsets are whole hours, or rounds getTimezoneOffset() / 60, is 15 to 45 minutes off.
it even checks for weird stuff like leap years and daylight savings shifts in places like kathmandu. tbh i'm skeptical about how much it'll slow down my CI pipeline if i run ten different destinations every time. still better than finding out a billing module is broken because of a 45 minute offset during a production deployment. wonder if it handles decimal separators for different locales properly though.

https://hackernoon.com/how-to-test-your-code-across-time-zones-and-dates-with-jetlag?source=rss


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]