Commit eed2d5a2 authored by Michael Natterer's avatar Michael Natterer 😴 Committed by Michael Natterer
Browse files

use localtime() instead of localtime_r() and don't use %F in strftime().

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.


svn path=/trunk/; revision=24785
parent 3a9f7d7c
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.
2008-02-04 Michael Natterer <mitch@gimp.org>
* app/core/Makefile.am
......
......@@ -672,8 +672,8 @@ gimp_image_map_tool_add_recent (GimpImageMapTool *image_map_tool)
}
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment