diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/lldate.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/llcommon/lldate.cpp b/linden/indra/llcommon/lldate.cpp index 47e5370..37b912d 100644 --- a/linden/indra/llcommon/lldate.cpp +++ b/linden/indra/llcommon/lldate.cpp | |||
@@ -4,6 +4,8 @@ | |||
4 | * @date 2006-02-05 | 4 | * @date 2006-02-05 |
5 | * @brief Implementation of the date class | 5 | * @brief Implementation of the date class |
6 | * | 6 | * |
7 | * $LicenseInfo:firstyear=2006&license=viewergpl$ | ||
8 | * | ||
7 | * Copyright (c) 2006-2007, Linden Research, Inc. | 9 | * Copyright (c) 2006-2007, Linden Research, Inc. |
8 | * | 10 | * |
9 | * Second Life Viewer Source Code | 11 | * Second Life Viewer Source Code |
@@ -26,6 +28,7 @@ | |||
26 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | 28 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO |
27 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | 29 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, |
28 | * COMPLETENESS OR PERFORMANCE. | 30 | * COMPLETENESS OR PERFORMANCE. |
31 | * $/LicenseInfo$ | ||
29 | */ | 32 | */ |
30 | 33 | ||
31 | #include "linden_common.h" | 34 | #include "linden_common.h" |
@@ -61,6 +64,8 @@ LLDate::LLDate(const std::string& iso8601_date) | |||
61 | { | 64 | { |
62 | if(!fromString(iso8601_date)) | 65 | if(!fromString(iso8601_date)) |
63 | { | 66 | { |
67 | llwarns << "date " << iso8601_date << " failed to parse; " | ||
68 | << "ZEROING IT OUT" << llendl; | ||
64 | mSecondsSinceEpoch = DATE_EPOCH; | 69 | mSecondsSinceEpoch = DATE_EPOCH; |
65 | } | 70 | } |
66 | } | 71 | } |
@@ -212,7 +217,7 @@ bool LLDate::fromStream(std::istream& s) | |||
212 | s >> fractional; | 217 | s >> fractional; |
213 | seconds_since_epoch += fractional; | 218 | seconds_since_epoch += fractional; |
214 | } | 219 | } |
215 | s.get(); // skip the Z | 220 | c = s.get(); // skip the Z |
216 | if (c != 'Z') { return false; } | 221 | if (c != 'Z') { return false; } |
217 | 222 | ||
218 | mSecondsSinceEpoch = seconds_since_epoch; | 223 | mSecondsSinceEpoch = seconds_since_epoch; |