GaretJax / phpbrowscap

Standalone replacement for php's native get_browser() function
MIT License
429 stars 69 forks source link

Do not reset the timezone #65

Open xrstf opened 10 years ago

xrstf commented 10 years ago

I was pretty surprised to find that when I instantiate Browscap, my timezone suddenly changed. It's correct that you need a timezone to be set, but doing it in the constructor (or anywhere in the library for that matter) is a bad approach.

Instead, you should rely on my app or the testing bootstrap code to handle dates and timezones.