Comments (8)
For anyone that may want to help tackle this, if you find yourself making any code changes to the Timezone.* modules, ping me first.
from timex.
Looking at the code this probably is also a bug in to_days, although you'd need to look a lot harder to find a specific example.
from timex.
I made a first pass at this problem by writing a test that fails and a simple solution, however it seems to be causing problems in other code. Date.to_secs is fundamental to many other functions and I may be running into chicken and egg issues.
The code is here if you want to look, will keep plugging away as I have time.
https://github.com/bbense/timex/tree/Date_to_secs_bug_24
from timex.
This patch resolves the bug.
No changes to the Timezone code were required, but other methods in Date required some reworking to adapt to the changes in to_secs.
from timex.
Merged and published as part of the 0.13.3 release. Thanks! Do you happen to know which functions specifically required rework? I can dig through and find out, but if you know offhand, then I can open a new issue to track that.
from timex.
Date.shift and Date.compare
On Fri, Jan 9, 2015 at 4:28 PM, Paul Schoenfelder [email protected]
wrote:
Merged and published as part of the 0.13.3 release. Thanks! Do you happen
to know which functions specifically required rework? I can dig through and
find out, but if you know offhand, then I can open a new issue to track
that.—
Reply to this email directly or view it on GitHub
#24 (comment).
from timex.
Oh and Date.diff
On Fri, Jan 9, 2015 at 4:37 PM, Booker Bense [email protected] wrote:
Date.shift and Date.compare
On Fri, Jan 9, 2015 at 4:28 PM, Paul Schoenfelder <
[email protected]> wrote:Merged and published as part of the 0.13.3 release. Thanks! Do you happen
to know which functions specifically required rework? I can dig through and
find out, but if you know offhand, then I can open a new issue to track
that.—
Reply to this email directly or view it on GitHub
#24 (comment).
from timex.
@bbense Excellent, thank you sir! Might be a good place to start if you are looking for another issue to tackle. I'll cc you on it when I create it, you can decide whether you want to work that one or not.
from timex.
Related Issues (20)
- `Timex.from_now` unexpected result
- to_datetime without time zone no longer converts DateTime to UTC HOT 1
- Failing tests (Elixir 1.13) HOT 1
- Half-hour negative timezone formatting
- Start of day fails to handle change from daylight saving HOT 1
- `Timex.from_now` rounds up to minute after 45 seconds
- Timex.shift/2 with time-shift always converts precision to :microsecond in Elixir v1.14+ HOT 2
- Timex.format seems off at the end of the month
- Gettext warnings because some translation files specify nplurals without rules HOT 4
- Translation is missing plural form 1 which is required by the locale "id" HOT 1
- Error handling conversions which land in a > 4 digit year HOT 2
- set/2 : Pre parse/sort options to prevent wrong date creation HOT 1
- Inconsistency in `shift/2` with months, years HOT 2
- Can Timex parse a relative string into a DateTime? HOT 1
- `Timex.format/2` Wrong week number when using Wsun or %U HOT 1
- Timex.parse for {Zabbr} not working
- Beginner on Timex HOT 1
- Typo + Incorrect Info in strftime.ex
- Cant compile timex on a project with gettext configured HOT 1
- Timex.from_now is wrong when multiple days in the future / Might be timezone related, not sure
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 timex.