--- src/gs-lock-plug.c.orig	2008-08-09 02:37:42.000000000 +0100
+++ src/gs-lock-plug.c	2009-05-12 09:12:02.000000000 +0100
@@ -1464,6 +1464,17 @@ expand_string (const char *text)
                                 g_string_append (str, username);
                                 g_free (username);
                                 break;
+                        case 't':
+                        {
+                                /* local time */
+                                time_t rawtime;
+                                struct tm * timeinfo;
+
+                                time (&rawtime);
+                                timeinfo = localtime (&rawtime);
+                                g_string_append_printf (str, "%02d:%02d", timeinfo->tm_hour, timeinfo->tm_min);
+                                break;
+                         }
                         default:
                                 if (ch < 127) {
                                         g_warning ("unknown escape code %%%c in text\n", (char)ch);
