Changeset 396
- Timestamp:
- Jun 27, 2007, 5:47:29 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/Date.cc
r366 r396 27 27 #include <sstream> 28 28 #include <string> 29 30 #include <iostream> 29 31 30 32 namespace theplu { … … 115 117 { 116 118 std::stringstream sstream(str); 117 struct tm* timeinfo = std:: gmtime(&time_);119 struct tm* timeinfo = std::localtime(&time_); 118 120 119 121 u_int year, month, day, hour, minute, second; … … 144 146 145 147 time_ = mktime(timeinfo); 146 timeinfo = std::localtime(&time_);147 148 time_ += timeinfo->tm_gmtoff; 148 149 } -
trunk/test/Makefile.am
r373 r396 22 22 # 02111-1307, USA. 23 23 24 check_PROGRAMS = gnuplot_pipe parser trac utility24 check_PROGRAMS = date gnuplot_pipe parser trac utility 25 25 26 26 TESTS = $(check_PROGRAMS) 27 # th is test isonly for developers since we do not distribute test repository27 # these tests are only for developers since we do not distribute test repository 28 28 if WCTESTS 29 29 TESTS += test_repo.sh check_repo_status.sh … … 34 34 AM_CPPFLAGS = -I@top_srcdir@/lib 35 35 36 date_SOURCES = date.cc 36 37 gnuplot_pipe_SOURCES = gnuplot_pipe.cc 37 38 parser_SOURCES = parser.cc
Note: See TracChangeset
for help on using the changeset viewer.