Comments (6)
In principle, we'd love to make this possible. In practice, it's very very hard. LaTeX takes it's time from the system time, with no way that I know to easily override \today with a custom timezone. There can only ever be one system time on a server, so supporting multiple timezones in an API that serves many users at once currently seems impossible. I'm open to clever workarounds though if someone can find one :)
from clsi.
Sorry, but setting TZ variable is not an option?
Just check out these outputs:
$ echo $TZ
America/Sao_Paulo
$ date
Mon, May 18, 2015 8:35:21 AM
$ TZ=UTC date
Mon, May 18, 2015 11:35:49 AM
$ TZ=GMT-10 date
Mon, May 18, 2015 9:36:07 PM
$ TZ=Asia/Singapore date
Mon, May 18, 2015 7:37:17 PM
So setting TZ variable before call latex binary should work as well. I just to not own a LaTeX environment ready to test it, but I think this simple change may do the trick.
from clsi.
ok, that approach might work. I'll reopen this, thanks.
from clsi.
Great! :)
from clsi.
Just to help this implementation, there is a full documentation of TZ variable at http://www.gnu.org/software/libc/manual/html_node/TZ-Variable.html.
Also, it would be incredible if the implementation be able to handle Daylight Saving Times (DST). I think ShareLatex UI can guess user's timezone using JavaScript and pass this info to the API.
This way, we avoid the need to keep a table to inform the DST start/end dates of each country (that would be a pain), or force the user to select its timezone/DST info.
from clsi.
Hi!
Thank you for taking the time to write up this issue.
We are in the process of migrating to a monorepo at https://github.com/overleaf/overleaf and will mark this repository read-only soon.
You can read more about the monorepo migration at overleaf/overleaf#923.
We are going to close this issue now to avoid any confusion about the inability to comment further.
If you believe this issue still needs addressing, please create a new issue at https://github.com/overleaf/overleaf.
Thanks again!
from clsi.
Related Issues (20)
- Acceptance tests fail HOT 1
- A valid Gruntfile could not be found. HOT 5
- Internal Server Error - top level object should have a compile attribute HOT 5
- DockerRunner performance improvement HOT 3
- Compiling on Overleaf, but using favorite Desktop IDE? HOT 2
- Support pandoc HOT 2
- Can't compile tex files containing images HOT 1
- how to invoke LaTeX with the -shell-escape flag HOT 1
- [email protected] install fails on [email protected] HOT 2
- qpdf not installed HOT 1
- Timeout received while compiling document HOT 2
- sqlite error: "SQLITE_BUSY: database is locked" HOT 4
- Run clsi as revice fails with 'Headers already sent' HOT 5
- LuaTeX/ConTeXt Support HOT 3
- How to bind port 3013 to external IP,such as 0.0.0.0 ? HOT 2
- Smoke tests not compiled for Docker image in ho-dockerise branch HOT 2
- Failing compiling. Wrong pointer type HOT 1
- Hack: pandoc HOT 2
- Multiple issues in dependancies install HOT 3
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 clsi.