title: boost: get the current local_date_time with current time zone from the machine
body: <p>The problems is:</p>
  
  <ul>
  <li>I know how to get the local time in boost</li>
  </ul>
  
  <p>the code:</p>
  
  <pre><code>    boost::local_time::local_date_time currentTime(
          boost::posix_time::second_clock::local_time(),
          boost::local_time::time_zone_ptr());
      std::cout &lt;&lt; currentTime.local_time() &lt;&lt; std::endl;
  </code></pre>
  
  <ul>
  <li>I know how to get the current time zone data from the machine (I hope it's a right way)</li>
  </ul>
  
  <p>the code:</p>
  
  <pre><code>tzset();
  // the var tzname will have time zone names
  // the var timezone will have the current offset
  // the var daylight should show me if there is daylight "on"
  </code></pre>
  
  <p>but still I can't get local_date_time with the current time_zone... Does someone know, how to do it?</p>