Commit 57b3e74
Fix milliseconds bug in DateTime parseRfc3339. The fraction after the dot is not always 3
digits, in which case it must be multiplied by 10^n to get the correct
milliseconds.
Example1: 12:34.56 should have milliseconds=560, but it was returning only 56.
Example2: 12:34.56789 should have milliseconds=567, but it was returning 56789.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=1049210331 parent 926e04d commit 57b3e74
File tree
2 files changed
+20
-1
lines changed- google-http-client/src
- main/java/com/google/api/client/util
- test/java/com/google/api/client/util
2 files changed
+20
-1
lines changedLines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
316 | 319 | | |
317 | 320 | | |
318 | 321 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
| 123 | + | |
124 | 124 | | |
125 | 125 | | |
126 | 126 | | |
| |||
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
141 | 157 | | |
142 | 158 | | |
143 | 159 | | |
| |||
0 commit comments