diff options
Diffstat (limited to 'linden/indra/llcommon/lltimer.cpp')
-rw-r--r-- | linden/indra/llcommon/lltimer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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); |