gimp r24785 - in trunk: . app/tools



Author: mitch
Date: Mon Feb  4 11:53:36 2008
New Revision: 24785
URL: http://svn.gnome.org/viewvc/gimp?rev=24785&view=rev

Log:
2008-02-04  Michael Natterer  <mitch gimp org>

	* app/tools/gimpimagemaptool.c (gimp_image_map_tool_add_recent):
	use localtime() instead of localtime_r() and don't use %F in
	strftime(). Fixes bug #513966.



Modified:
   trunk/ChangeLog
   trunk/app/tools/gimpimagemaptool.c

Modified: trunk/app/tools/gimpimagemaptool.c
==============================================================================
--- trunk/app/tools/gimpimagemaptool.c	(original)
+++ trunk/app/tools/gimpimagemaptool.c	Mon Feb  4 11:53:36 2008
@@ -672,8 +672,8 @@
     }
 
   now = time (NULL);
-  localtime_r (&now, &tm);
-  strftime (buf, sizeof (buf), "%F %T", &tm);
+  tm = *localtime (&now);
+  strftime (buf, sizeof (buf), "%Y-%m-%d %T", &tm);
 
   name = g_locale_to_utf8 (buf, -1, NULL, NULL, NULL);
   gimp_object_set_name (GIMP_OBJECT (config), name);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]