aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon')
-rw-r--r--linden/indra/llcommon/indra_constants.h5
-rw-r--r--linden/indra/llcommon/lltimer.cpp6
2 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/llcommon/indra_constants.h b/linden/indra/llcommon/indra_constants.h
index 279d280..b765d4d 100644
--- a/linden/indra/llcommon/indra_constants.h
+++ b/linden/indra/llcommon/indra_constants.h
@@ -153,6 +153,11 @@ const char WATER_LAYER_CODE = 'W';
153const char WIND_LAYER_CODE = '7'; 153const char WIND_LAYER_CODE = '7';
154const char CLOUD_LAYER_CODE = '8'; 154const char CLOUD_LAYER_CODE = '8';
155 155
156// Extended land layer for Aurora Sim
157const char AURORA_LAND_LAYER_CODE = 'M';
158const char AURORA_WIND_LAYER_CODE = '9';
159const char AURORA_CLOUD_LAYER_CODE = ':';
160
156// keys 161// keys
157// Bit masks for various keyboard modifier keys. 162// Bit masks for various keyboard modifier keys.
158const MASK MASK_NONE = 0x0000; 163const MASK MASK_NONE = 0x0000;
diff --git a/linden/indra/llcommon/lltimer.cpp b/linden/indra/llcommon/lltimer.cpp
index 2d283ec..b825c1e 100644
--- a/linden/indra/llcommon/lltimer.cpp
+++ b/linden/indra/llcommon/lltimer.cpp
@@ -529,14 +529,14 @@ struct tm* utc_to_offset_time(time_t utc_time, S32 offset, BOOL DST)
529{ 529{
530 if (DST) 530 if (DST)
531 { 531 {
532 //Subtract one then 532 //Add one then
533 offset--; 533 offset++;
534 } 534 }
535 535
536 // We subtract off the PST/PDT offset _before_ getting 536 // We subtract off the PST/PDT offset _before_ getting
537 // "UTC" time, because this will handle wrapping around 537 // "UTC" time, because this will handle wrapping around
538 // for 5 AM UTC -> 10 PM PDT of the previous day. 538 // for 5 AM UTC -> 10 PM PDT of the previous day.
539 utc_time -= offset * MIN_PER_HOUR * SEC_PER_MIN; 539 utc_time -= (-1 * offset) * MIN_PER_HOUR * SEC_PER_MIN;
540 540
541 // Internal buffer to PST/PDT (see above) 541 // Internal buffer to PST/PDT (see above)
542 struct tm* internal_time = gmtime(&utc_time); 542 struct tm* internal_time = gmtime(&utc_time);