For some weird reason which I now can't remember, some tracks have a different start and finish line.
The start line is always in front of the pole sitter on the grid, however the finish line can be anywhere on or before this. That's why you may sometimes see the race end, or a lap time pop up when the car is only halfway down the grid.
For qualifying the times are always measured from the same line though - usually the finish line.