Fix failing DateTest testing the http date parsing

Test failed because of wrong time zone.
Move device detection functions to category of UIDevice