[Gridflow-cvs] [svn] commit: r6536 - /trunk/src/classes2.cxx

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Fri Feb 4 19:17:31 EST 2011


Author: matju
Date: Fri Feb  4 19:17:29 2011
New Revision: 6536

Log:
[unix_time]: fixed month bug

Modified:
    trunk/src/classes2.cxx

Modified: trunk/src/classes2.cxx
==============================================================================
--- trunk/src/classes2.cxx (original)
+++ trunk/src/classes2.cxx Fri Feb  4 19:17:29 2011
@@ -350,7 +350,7 @@
 		if (!tmp) RAISE("localtime: %s",strerror(errno));
 		char tt[MAXPDSTRING];
 		strftime(tt,MAXPDSTRING,"%a %b %d %H:%M:%S %Z %Y",tmp);
-		t_atom2 a[6] = {tmp->tm_year+1900,tmp->tm_mon-1,tmp->tm_mday,tmp->tm_hour,tmp->tm_min,tmp->tm_sec};
+		t_atom2 a[6] = {tmp->tm_year+1900,tmp->tm_mon+1,tmp->tm_mday,tmp->tm_hour,tmp->tm_min,tmp->tm_sec};
 		t_atom2 b[3] = {tv.tv_sec/86400,mod(tv.tv_sec,86400),tv.tv_usec};
 		out[2](6,a);
 		out[1](3,b);



More information about the Gridflow-cvs mailing list