Play with this:

Code:
// create a midnight-aligned daily price series
static int BarsPerDay = 0;
if(hour(0) < hour(1)) { // day change  
  TimeFrame = -BarsPerDay; // end the frame
  BarsPerDay = 0;
} else {
  TimeFrame = 0; // inside the frame
  BarsPerDay++;  // count number of bars per day
}
vars PriceD1 = series(price());

// alternative: a midnight-aligned price series using frameSync()
StartWeek = 10000;
TimeFrame = frameSync(H24);
vars PriceD1 = series(price());



Also enter "time zone" in the search bar of the HTML Help document located in the main Zorro folder.