gd_bam 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
data/lib/bam/version.rb
CHANGED
@@ -149,6 +149,25 @@ function integer transform() {
|
|
149
149
|
$out.0.CreatedDate = left($in.0.CreatedDate, 10);
|
150
150
|
}
|
151
151
|
|
152
|
+
if ($in.0.CreatedDate != null && $in.0.CreatedDate != "" && left($in.0.CreatedDate, 4) < "1950") {
|
153
|
+
$out.0.CreatedDate = '1950-01-01';
|
154
|
+
}
|
155
|
+
|
156
|
+
if ($in.0.CreatedDate != null && $in.0.CreatedDate != "" && left($in.0.CreatedDate, 4) > "2049") {
|
157
|
+
$out.0.CreatedDate = '2049-01-01';
|
158
|
+
}
|
159
|
+
|
160
|
+
|
161
|
+
if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) < "1950") {
|
162
|
+
$out.0.CloseDate = '1950-01-01';
|
163
|
+
}
|
164
|
+
|
165
|
+
if ($in.0.CloseDate != null && $in.0.CloseDate != "" && left($in.0.CloseDate, 4) > "2049") {
|
166
|
+
$out.0.CloseDate = '2049-01-01';
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
|
152
171
|
return ALL;
|
153
172
|
}
|
154
173
|
|