Comments (2)
What is the issue/scenario that this helps address? Do we have users evaluating/parsing dateTime string values (without timezone) that are being evaluated as GMT and they want them evaluated as if they were in another timezone (e.g. America/New_York)?
- We could obtain the CoRB client's TimeZone using TimeZone.getDefault() , and ensure that the TimeZone is set in the invokeModule().
- Or were you thinking that the TimeZone ID would be explicitly specified as a CoRB option that is parsed with TimeZone.getTimeZone() and set in the TaskFactory.setupTask() for all of the Tasks for that job.
- Would we want TimeZone to always be set for XCC requests, or only when enabled and/or explicitly set via options?
from corb2.
Hi Mads,
This is not a critical issue as we have an alternative, thought not elegant. Basically, when a query is executed through xcc on ML server, it gets the time zone from dynamic context of the request. Unless it is specified, XCC requests uses default timezone of JVM.
So, when you do fn:implicit-timezone() or fn:adjust-dateTime-to-timezone() in your queries, it always get the CoRB client's timezone and there is no easy way to force it always use the server timezone. This can be problematic as same code run from two timezones or daylight vs non-daylight savings time may behave differently. I found the problem when I was troubleshooting a job failure for another team here. The alternative it is to either hard code the timezone in xquery or pass as an external variable to prevent daylight savings shift.
Ideally, we should have an 'option' to always use the server's timezone (if ML allows it). But if Corb allows us to set the timezone, we don't need to hard code or make adjustments in the query/code.
from corb2.
Related Issues (20)
- Automatically use ExportBatchToFileTask when setting EXPORT-FILE-NAME
- Update SSL config to use TLSv1.2 HOT 3
- Issues running Corb via AppServicesPort HOT 5
- SchemaValidateBatchToFileTask not appending content, overwriting with last item
- Better diagnostics for easily detectable developer errors in QueryUrisLoader
- Corb runs selector even when the job is started with COMMAND=STOP
- Option UseConcMarkSweepGC deprecated
- QueryUrisLoader uses Integer.parseInt to obtain total count
- mangled output when default character encoding is not UTF-8
- Job server web page should update after the job completes HOT 2
- CORB running mjs modules issue HOT 1
- Adjustments for Java 11+ and deprecated JAXB javax.xml.bind package HOT 1
- Require PROCESS-MODULE to be set when using Export*ToFileTask
- TLS certificate failing to connect (but the same cert works fine with MLCP) HOT 4
- Suggestion: add deprecated bind libraries to build.gradle HOT 1
- Support external header (and footer) for Module Executor
- expose Manager execError with hasExecError() method
- improve usage messages
- Illegal base64 character encountered in PrivateKeyDecrypter.doDecrypt for unencrypted values that contain - HOT 1
- OPTIONS_FILE assumes ISO 8859-1 encoding HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from corb2.