#include <gio/gio.h>
#include <glib.h>

int main()
{
    g_type_init();
    
    GSettingsSchemaSource *source = g_settings_schema_source_get_default(); 
    if (source == NULL) {
        g_printerr("Schema source was null\n");
        return -1;
    }

    GSettingsSchemaSource *ref = g_settings_schema_source_ref(source);

    GSettingsSchema *schema = g_settings_schema_source_lookup(
        ref, "com.canonical.indicator.datetime", TRUE
    );
    
    if (schema == NULL) {
        g_printerr("Schema was null\n");
        return -1;
    }
    
    GSettings *settings = g_settings_new_full(schema, NULL, NULL);
    
    gchar *tz = g_settings_get_string(settings, "timezone-name");

    g_settings_schema_source_unref(ref);

    return 0;
}
