Diff between c8d1e8d822f1a27091c23a5a35ca9ed1d6354eb1 and 207b1bb827a97f7f704cbefd52393998197629a4

Changed Files

File Additions Deletions Status
profiles/time/server.c +5 -5 modified

Full Patch

diff --git a/profiles/time/server.c b/profiles/time/server.c
index be6e196..d38b9b8 100644
--- a/profiles/time/server.c
+++ b/profiles/time/server.c
@@ -107,13 +107,13 @@ static uint8_t local_time_info_read(struct attribute *a,
 
 	tzset();
 
-	/* FIXME: POSIX "daylight" variable only indicates whether there is DST
-	 * for the local time or not. The offset is unknown. */
-	value[0] = daylight ? 0xff : 0x00;
-
 	/* Convert POSIX "timezone" (seconds West of GMT) to Time Profile
 	 * format (offset from UTC in number of 15 minutes increments). */
-	value[1] = (uint8_t) (-1 * timezone / (60 * 15));
+	value[0] = (uint8_t) (-1 * timezone / (60 * 15));
+
+	/* FIXME: POSIX "daylight" variable only indicates whether there
+	 * is DST for the local time or not. The offset is unknown. */
+	value[1] = daylight ? 0xff : 0x00;
 
 	attrib_db_update(adapter, a->handle, NULL, value, sizeof(value), NULL);