projects
/
uzbl-mobile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a3b3be
)
revert commit cdbe169f to make date for history handler back in same format
author
Dieter Plaetinck
<dieter@plaetinck.be>
Thu, 16 Jul 2009 20:51:48 +0000
(22:51 +0200)
committer
Dieter Plaetinck
<dieter@plaetinck.be>
Thu, 16 Jul 2009 20:51:48 +0000
(22:51 +0200)
uzbl.c
patch
|
blob
|
history
diff --git
a/uzbl.c
b/uzbl.c
index
81db05a
..
81e66d9
100644
(file)
--- a/
uzbl.c
+++ b/
uzbl.c
@@
-703,15
+703,13
@@
destroy_cb (GtkWidget* widget, gpointer data) {
void
log_history_cb () {
if (uzbl.behave.history_handler) {
void
log_history_cb () {
if (uzbl.behave.history_handler) {
- GTimeVal the_time;
- gchar *date;
-
- g_get_current_time(&the_time);
- /* no need to wrap this string with quotes since it contains no spaces.
- format is like: 2009-06-26T20:02:05.262864Z */
- date = g_time_val_to_iso8601(&the_time);
+ time_t rawtime;
+ struct tm * timeinfo;
+ char date [80];
+ time ( &rawtime );
+ timeinfo = localtime ( &rawtime );
+ strftime (date, 80, "\"%Y-%m-%d %H:%M:%S\"", timeinfo);
run_handler(uzbl.behave.history_handler, date);
run_handler(uzbl.behave.history_handler, date);
- g_free(date);
}
}
}
}