reset locale at end of function; changed way of calculating the target date
Added a note about timezone handling on the plugins help page