summary refs log tree commit diff stats
path: root/src/fe-gtk/setup.c
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-11-02 02:05:55 -0400
committerTingPing <tingping@tingping.se>2013-11-02 21:07:03 -0400
commitaf248ce2c17416ed33e9feb3d248347ee86f02e4 (patch)
tree26b7f1b9bf44c727049ffc58c7b16c51decb2626 /src/fe-gtk/setup.c
parent7e6f37b4cd68a520e808ac642a2750d5d60c0aa8 (diff)
Fix invalid timestamps crashing on Windows
Diffstat (limited to 'src/fe-gtk/setup.c')
-rw-r--r--src/fe-gtk/setup.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/fe-gtk/setup.c b/src/fe-gtk/setup.c
index 2f52d5d9..a1a54ca4 100644
--- a/src/fe-gtk/setup.c
+++ b/src/fe-gtk/setup.c
@@ -2114,7 +2114,6 @@ setup_apply (struct hexchatprefs *pr)
 	PangoFontDescription *old_desc;
 	PangoFontDescription *new_desc;
 	char buffer[4 * FONTNAMELEN + 1];
-	time_t rawtime;
 #endif
 	int new_pix = FALSE;
 	int noapply = FALSE;
@@ -2192,14 +2191,6 @@ setup_apply (struct hexchatprefs *pr)
 	g_free (old_desc);
 	g_free (new_desc);
 	*/
-
-	/* workaround for strftime differences between POSIX and MSVC */
-	time (&rawtime);
-
-	if (!strftime (buffer, sizeof (buffer), prefs.hex_stamp_text_format, localtime (&rawtime)) || !strftime (buffer, sizeof (buffer), prefs.hex_stamp_log_format, localtime (&rawtime)))
-	{
-		fe_message (_("Invalid time stamp format! See the strftime MSDN article for details."), FE_MSG_ERROR);
-	}
 #endif
 
 	if (prefs.hex_irc_real_name[0] == 0)