File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ CREATE OR REPLACE FUNCTION ${self()}(timeString STRING, formatString STRING)
2323 description="Emulates Oracle's TO_TIMESTAMP function.") AS
2424"""
2525// Return timeString with the given formatString in BigQuery canonical ISO format
26- const momentObject = moment(timeString, formatString);
26+ const momentObject = moment.utc (timeString, formatString);
2727
2828if(momentObject.isValid()) {
2929 return momentObject.toDate();
Original file line number Diff line number Diff line change @@ -3070,11 +3070,11 @@ generate_udf_test("bignumber_lte", [
30703070generate_udf_test ( "cw_parse_timestamp" , [
30713071 {
30723072 inputs : [ `"10-Sep-02 14:10:10.123000"` , `"DD-MMM-YY HH:mm:ss.SSSSSS"` , ] ,
3073- expected_output : `TIMESTAMP "2002-09-10 21 :10:10.123000 UTC"` ,
3073+ expected_output : `TIMESTAMP "2002-09-10 14 :10:10.123000 UTC"` ,
30743074 } ,
30753075 {
30763076 inputs : [ `"10-Sep-02 14:10:10123000"` , `"DD-MMM-YY HH:mm:ssSSSSSS"` , ] ,
3077- expected_output : `TIMESTAMP "2002-09-10 21 :10:10.123000 UTC"` ,
3077+ expected_output : `TIMESTAMP "2002-09-10 14 :10:10.123000 UTC"` ,
30783078 } ,
30793079 {
30803080 inputs : [ `"40-Sep-02 14:10:10123000"` , `"DD-MMM-YY HH:mm:ssSSSSSS"` , ] ,
You can’t perform that action at this time.
0 commit comments