comparison src/filedata.c @ 1804:2cc889b20a9e

Unifying the datetime output The output of %date% and %formatted.DateTime% should be equivalent.
author mow
date Sat, 27 Feb 2010 20:34:54 +0000
parents 956aab097ea7
children
comparison
equal deleted inserted replaced
1803:a0f7dcd47c7f 1804:2cc889b20a9e
114 GError *error = NULL; 114 GError *error = NULL;
115 115
116 btime = localtime(&t); 116 btime = localtime(&t);
117 117
118 /* the %x warning about 2 digit years is not an error */ 118 /* the %x warning about 2 digit years is not an error */
119 buflen = strftime(buf, sizeof(buf), "%x %H:%M", btime); 119 buflen = strftime(buf, sizeof(buf), "%x %X", btime);
120 if (buflen < 1) return ""; 120 if (buflen < 1) return "";
121 121
122 g_free(ret); 122 g_free(ret);
123 ret = g_locale_to_utf8(buf, buflen, NULL, NULL, &error); 123 ret = g_locale_to_utf8(buf, buflen, NULL, NULL, &error);
124 if (error) 124 if (error)