Use the dmy_hms
function from lubridate
package as others have suggested but be sure to specify the local timezone you desire to use via the tz
argument.
lurbidate::dmy_hms("01 Jul 2019 12:56:43 +08:00", tz = "America/Chicago")
R> dmy_hms(date, tz = "America/Chicago")
Date in ISO8601 format; converting timezone from UTC to "America/Chicago".
[1] "2019-06-30 23:56:43 CDT"
For an extensive list of available timezones, execute
OlsonNames(tzdir = NULL)
R> OlsonNames(tzdir = NULL)
[1] "Africa/Abidjan" "Africa/Accra" "Africa/Addis_Ababa"
[4] "Africa/Algiers" "Africa/Asmara" "Africa/Asmera"
[7] "Africa/Bamako" "Africa/Bangui" "Africa/Banjul"
[10] "Africa/Bissau" "Africa/Blantyre" "Africa/Brazzaville"
[13] "Africa/Bujumbura" "Africa/Cairo" "Africa/Casablanca"
[16] "Africa/Ceuta" "Africa/Conakry" "Africa/Dakar"
[19] "Africa/Dar_es_Salaam" "Africa/Djibouti" "Africa/Douala"
[22] "Africa/El_Aaiun" "Africa/Freetown" "Africa/Gaborone"
[25] "Africa/Harare" "Africa/Johannesburg" "Africa/Juba"
[28] "Africa/Kampala" "Africa/Khartoum" "Africa/Kigali"
...