Seconds to close candle in tester

 

Hello all,

I have the following code

      long start_time = SeriesInfoInteger(_Symbol, _Period, SERIES_LASTBAR_DATE);
      long lastTime = SymbolInfoInteger(_Symbol,SYMBOL_TIME);

 to calculate seconds for current candle to close.

When I run it live, it works great but in tester it shows always value 0.

 

Any clue?