generate api
more formating options for timezone
fix test