# How can my boss take rails seriously with bugs like this?

**URL:** <https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246>\
**Category:** ruby-talk\
**Created:** [24 October 2006 16:17 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246 "2006-10-24T16:17:07Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Richards](https://avatars.discourse-cdn.com/v4/letter/c/67e7ee/32.png) [@Chris\_Richards](https://rubytalk.org/u/Chris_Richards)\
**Post date:** [24 October 2006 16:17 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/1 "2006-10-24T16:17:07Z")

</div>

The Time::next\_week method is supposed to give the time of the start of  
the next week. But look at this, it cocks up :

> > t=Time.parse "Monday October 16th 2006"

=\> Mon Oct 16 00:00:00 BST 2006

> > t.next\_week

=\> Mon Oct 23 00:00:00 BST 2006

> > t.next\_week.next\_week

=\> Tue Oct 24 00:00:00 BST 2006

> > t.next\_week.next\_week.next\_week

=\> Mon Oct 30 00:00:00 GMT 2006

Arrhhhgg!! Its just f\*cked up my application data!

Has anyone run across this problem?

> **···**
>
> --  
> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

---

<div class="post-metadata">

**Author:** ![Eero\_Saynatkari2](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@Eero\_Saynatkari2](https://rubytalk.org/u/Eero_Saynatkari2)\
**Post date:** [24 October 2006 16:42 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/2 "2006-10-24T16:42:26Z")

</div>

> The Time::next\_week method is supposed to give the time of the start of  
> the next week. But look at this, it cocks up :
> 
> \>\> t=Time.parse "Monday October 16th 2006"  
> =\> Mon Oct 16 00:00:00 BST 2006  
> \>\> t.next\_week  
> =\> Mon Oct 23 00:00:00 BST 2006  
> \>\> t.next\_week.next\_week  
> =\> Tue Oct 24 00:00:00 BST 2006  
> \>\> t.next\_week.next\_week.next\_week  
> =\> Mon Oct 30 00:00:00 GMT 2006
> 
> Arrhhhgg!! Its just f\*cked up my application data!
> 
> Has anyone run across this problem?

I am sure someone on the Rails list has.

> Posted via [http://www.ruby-forum.com/\](http://www.ruby-forum.com/%5C).

&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;^^^^^^^^^^^^^^^^^^^^^^^^^

> **···**
>
> On 2006.10.25 01:17, Chris Richards wrote:

---

<div class="post-metadata">

**Author:** ![Paul\_Irofti1](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Paul\_Irofti1](https://rubytalk.org/u/Paul_Irofti1)\
**Post date:** [24 October 2006 17:28 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/3 "2006-10-24T17:28:34Z")

</div>

Your boss can read code?

If something is broken fix it! It's an OpenSource project built upon an  
OpenSource programming language...

At least submit a bug (after you search the bug tracker for duplicates  
and possible fixes).

The last thing you should do is bitch like this... it's embarrassing..  
and who cares about your boss or your problems anyways?

This is a bug and nothing more. Did you give up on a C/C++/php/[put your  
Lang here] library when you found a bug in their functions? I bet you  
haven't...

So have some respect for the devels and take into consideration that  
this is a technical mailing list not a kindergarden.

> **···**
>
> On Tuesday 24 October 2006 19:17, Chris Richards wrote:
> 
> > The Time::next\_week method is supposed to give the time of the start  
> > of
> > 
> > the next week. But look at this, it cocks up :  
> > \>\> t=Time.parse "Monday October 16th 2006"
> > 
> > =\> Mon Oct 16 00:00:00 BST 2006
> > 
> > \>\> t.next\_week
> > 
> > =\> Mon Oct 23 00:00:00 BST 2006
> > 
> > \>\> t.next\_week.next\_week
> > 
> > =\> Tue Oct 24 00:00:00 BST 2006
> > 
> > \>\> t.next\_week.next\_week.next\_week
> > 
> > =\> Mon Oct 30 00:00:00 GMT 2006
> > 
> > Arrhhhgg!! Its just f\*cked up my application data!
> > 
> > Has anyone run across this problem?

---

<div class="post-metadata">

**Author:** ![Jacob\_Fugal](https://avatars.discourse-cdn.com/v4/letter/j/439d5e/32.png) [@Jacob\_Fugal](https://rubytalk.org/u/Jacob_Fugal)\
**Post date:** [24 October 2006 18:59 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/4 "2006-10-24T18:59:23Z")

</div>

I agree with everyone else that your manners while pleading for help  
could use some work. I empathize, however, with screwed up data and  
how that can put you in a bad mood. That said...

This is really not as widespread a bug as it looked to me when you  
first mentioned it, but is an edge case tied to the messed up system  
we have called "Daylight Savings Time". What's happening is that the  
next week function hops forward by 7 days, then pulls back to the  
Monday immediately preceding (or coinciding with) the resulting date.  
This usually works all fine and handy. But if:

\* the seven day jump crosses the DST boundary  
\* the seven day jump ends on a Monday, and  
\* the time portion is within an hour of midnight

Then the timezone change is going to change early Monday morning to  
late Sunday night, and next\_week will slurp it back 6 days to what it  
thinks is the previous Monday. But since we cross the boundary again,  
we actually make it back to Tuesday. The second time you call  
next\_week (from Tuesday), we don't end on Monday, so there's no  
problem (aside from the wrong starting point).

Similar conditions will apply in April where if you start late Sunday  
night the Sunday before DST, the Monday 8 days in the future (instead  
of 1 day) will be returned. Stupid Daylight Savings Time. As if it  
doesn't confuse us humans enough, it has to go and mess with our code.

FWIW, this issue has actually been brought up on the Rails list and a  
patch submitted[1], all the way back in June. Now just to see if that  
patch can gain some momentum in actually being committed...

Jacob Fugal

[1] [http://dev.rubyonrails.org/ticket/5617](http://dev.rubyonrails.org/ticket/5617)

> **···**
>
> On 10/24/06, Chris Richards \<evilgeenius@gmail.com\> wrote:
> 
> > The Time::next\_week method is supposed to give the time of the start of  
> > the next week. But look at this, it cocks up :
> > 
> > \>\> t=Time.parse "Monday October 16th 2006"  
> > =\> Mon Oct 16 00:00:00 BST 2006  
> > \>\> t.next\_week  
> > =\> Mon Oct 23 00:00:00 BST 2006  
> > \>\> t.next\_week.next\_week  
> > =\> Tue Oct 24 00:00:00 BST 2006  
> > \>\> t.next\_week.next\_week.next\_week  
> > =\> Mon Oct 30 00:00:00 GMT 2006

---

<div class="post-metadata">

**Author:** ![Carl\_Lerche](https://avatars.discourse-cdn.com/v4/letter/c/3da27b/32.png) [@Carl\_Lerche](https://rubytalk.org/u/Carl_Lerche)\
**Post date:** [24 October 2006 17:46 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/5 "2006-10-24T17:46:18Z")

</div>

Not to mention that this is one of the easiest libraries (that I've  
worked with) to fix / patch on the fly.

> **···**
>
> On 10/24/06, Paul Irofti \<bulibuta@gmail.com\> wrote:
> 
> > On Tuesday 24 October 2006 19:17, Chris Richards wrote:  
> > \> The Time::next\_week method is supposed to give the time of the start  
> > \> of  
> > \>  
> > \> the next week. But look at this, it cocks up :  
> > \> \>\> t=Time.parse "Monday October 16th 2006"  
> > \>  
> > \> =\> Mon Oct 16 00:00:00 BST 2006  
> > \>  
> > \> \>\> t.next\_week  
> > \>  
> > \> =\> Mon Oct 23 00:00:00 BST 2006  
> > \>  
> > \> \>\> t.next\_week.next\_week  
> > \>  
> > \> =\> Tue Oct 24 00:00:00 BST 2006  
> > \>  
> > \> \>\> t.next\_week.next\_week.next\_week  
> > \>  
> > \> =\> Mon Oct 30 00:00:00 GMT 2006  
> > \>  
> > \> Arrhhhgg!! Its just f\*cked up my application data!  
> > \>  
> > \> Has anyone run across this problem?
> > 
> > Your boss can read code?
> > 
> > If something is broken fix it! It's an OpenSource project built upon an  
> > OpenSource programming language...
> > 
> > At least submit a bug (after you search the bug tracker for duplicates  
> > and possible fixes).
> > 
> > The last thing you should do is bitch like this... it's embarrassing..  
> > and who cares about your boss or your problems anyways?
> > 
> > This is a bug and nothing more. Did you give up on a C/C++/php/[put your  
> > Lang here] library when you found a bug in their functions? I bet you  
> > haven't...
> > 
> > So have some respect for the devels and take into consideration that  
> > this is a technical mailing list not a kindergarden.

---

<div class="post-metadata">

**Author:** ![M\_Edward\_Ed\_Borasky1](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@M\_Edward\_Ed\_Borasky1](https://rubytalk.org/u/M_Edward_Ed_Borasky1)\
**Post date:** [24 October 2006 21:14 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/6 "2006-10-24T21:14:00Z")

</div>

Jacob Fugal wrote:

> This is really not as widespread a bug as it looked to me when you  
> first mentioned it, but is an edge case tied to the messed up system  
> we have called "Daylight Savings Time".

And I thought it was just \*cows\* that got messed up by Daylight Savings  
Time!

---

<div class="post-metadata">

**Author:** ![David\_Vallner](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@David\_Vallner](https://rubytalk.org/u/David_Vallner)\
**Post date:** [25 October 2006 03:34 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/7 "2006-10-25T03:34:37Z")

</div>

Paul Irofti wrote:

> If something is broken fix it! It's an OpenSource project built upon an  
> OpenSource programming language...

Rails is from the user's POV a tool. If a screwdriver has a loose  
handle, buying a different brand is as valid an approach as trying to  
stabilise it...

Users do have the right to object against the low quality of something  
even if it's free. (Granted, in a less whiny tone, and using official  
ways like the bug tracker for specific bugs.) Just because the barrier  
to contribution is lowered from one side, it doesn't mean it  
automagically as lowered from the other - even people unskilled in  
developing web frameworks or that just don't have time to spare to  
develop it should receive a product that, well, works.

The "fix it yourself" attitude I perceive as actively harmful to  
open-source software as a whole - it creates an image of getting away  
with half-done jobs, lack of concern for the end user, and general  
tending to mediocrity. I personally much prefer working with  
high-quality tools (open-source or otherwise, I've seen neither model  
prove as a magic bullet - big surprise there), more so since  
specifically Rails is far from a free lunch, considering it -started  
out- as parts of commercial 37signals services before going open-source  
(no idea how much of the development is done by paid employees of that  
company anymore). The latter is actually a comforting fact, since they  
do indeed eat their own dogfood and are interested in keeping Rails  
maintained for other purposes than open-source karma points.

David Vallner

---

<div class="post-metadata">

**Author:** ![Greg\_Newman](https://avatars.discourse-cdn.com/v4/letter/g/edb3f5/32.png) [@Greg\_Newman](https://rubytalk.org/u/Greg_Newman)\
**Post date:** [24 October 2006 21:18 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/8 "2006-10-24T21:18:05Z")

</div>

Cows and people in Arizona

> **···**
>
> On 10/24/06, M. Edward (Ed) Borasky \<znmeb@cesmail.net\> wrote:
> 
> > Jacob Fugal wrote:  
> > \> This is really not as widespread a bug as it looked to me when you  
> > \> first mentioned it, but is an edge case tied to the messed up system  
> > \> we have called "Daylight Savings Time".
> > 
> > And I thought it was just \*cows\* that got messed up by Daylight Savings  
> > Time!
> 
> --
> 
> - Greg Newman  
> -------------------------------------------  
> [http://www.carbon8.us](http://www.carbon8.us)  
> [http://www.busyashell.com](http://www.busyashell.com)

---

<div class="post-metadata">

**Author:** ![HAL\_9000](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@HAL\_9000](https://rubytalk.org/u/HAL_9000)\
**Post date:** [25 October 2006 00:07 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/9 "2006-10-25T00:07:57Z")

</div>

M. Edward (Ed) Borasky wrote:

> Jacob Fugal wrote:
> 
> > This is really not as widespread a bug as it looked to me when you  
> > first mentioned it, but is an edge case tied to the messed up system  
> > we have called "Daylight Savings Time".
> 
> And I thought it was just \*cows\* that got messed up by Daylight Savings  
> Time!

Actually, it's Daylight Saving Time. 🙂

Sorry, just feeding a pet peeve...

Hal

---

<div class="post-metadata">

**Author:** ![Paul\_Irofti1](https://avatars.discourse-cdn.com/v4/letter/p/5daacb/32.png) [@Paul\_Irofti1](https://rubytalk.org/u/Paul_Irofti1)\
**Post date:** [25 October 2006 13:50 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/10 "2006-10-25T13:50:24Z")

</div>

I agree with most of the things you said, but do note that after that quote  
(from my initial mail) I did mentioned posting the bug on a tracker.. I  
think it was the next paragraph.

Anyways I didn't mind that he asked for help or reported a bug, or even that  
he was angry about a certain loss of data. That's all normal. But the tone  
and, for God's sake, look at the thread's subject...

> **···**
>
> On 10/25/06, David Vallner \<david@vallner.net\> wrote:
> 
> > Paul Irofti wrote:  
> > \> If something is broken fix it! It's an OpenSource project built upon an  
> > \> OpenSource programming language...  
> > \>
> > 
> > Rails is from the user's POV a tool. If a screwdriver has a loose  
> > handle, buying a different brand is as valid an approach as trying to  
> > stabilise it...
> > 
> > Users do have the right to object against the low quality of something  
> > even if it's free. (Granted, in a less whiny tone, and using official  
> > ways like the bug tracker for specific bugs.) Just because the barrier  
> > to contribution is lowered from one side, it doesn't mean it  
> > automagically as lowered from the other - even people unskilled in  
> > developing web frameworks or that just don't have time to spare to  
> > develop it should receive a product that, well, works.
> > 
> > The "fix it yourself" attitude I perceive as actively harmful to  
> > open-source software as a whole - it creates an image of getting away  
> > with half-done jobs, lack of concern for the end user, and general  
> > tending to mediocrity. I personally much prefer working with  
> > high-quality tools (open-source or otherwise, I've seen neither model  
> > prove as a magic bullet - big surprise there), more so since  
> > specifically Rails is far from a free lunch, considering it -started  
> > out- as parts of commercial 37signals services before going open-source  
> > (no idea how much of the development is done by paid employees of that  
> > company anymore). The latter is actually a comforting fact, since they  
> > do indeed eat their own dogfood and are interested in keeping Rails  
> > maintained for other purposes than open-source karma points.
> > 
> > David Vallner

---

<div class="post-metadata">

**Author:** ![Kevin6](https://avatars.discourse-cdn.com/v4/letter/k/aeb1de/32.png) [@Kevin6](https://rubytalk.org/u/Kevin6)\
**Post date:** [25 October 2006 01:20 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/11 "2006-10-25T01:20:06Z")

</div>

Hal Fulton wrote:

> M. Edward (Ed) Borasky wrote:  
> \> Jacob Fugal wrote:  
> \>  
> \>\>This is really not as widespread a bug as it looked to me when you  
> \>\>first mentioned it, but is an edge case tied to the messed up system  
> \>\>we have called "Daylight Savings Time".  
> \>  
> \>  
> \> And I thought it was just \*cows\* that got messed up by Daylight Savings  
> \> Time!  
> \>
> 
> Actually, it's Daylight Saving Time. 🙂
> 
> Sorry, just feeding a pet peeve...
> 
> Hal

Just wait til next year when the US changes the day that DST starts and  
ends on. Won't that be fun.

It's not a hard thing to fix, but you just \*know\* that some ISP is  
going to forget.

BTW... Daylight saving time doesn't actually save any daylight....  
another pet peeve.

\_Kevin

---

<div class="post-metadata">

**Author:** ![HAL\_9000](https://avatars.discourse-cdn.com/v4/letter/h/90ced4/32.png) [@HAL\_9000](https://rubytalk.org/u/HAL_9000)\
**Post date:** [25 October 2006 01:27 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/12 "2006-10-25T01:27:04Z")

</div>

\_Kevin wrote:

> Just wait til next year when the US changes the day that DST starts and  
> ends on. Won't that be fun.

Hmm, isn't that this year??

> It's not a hard thing to fix, but you just \*know\* that some ISP is  
> going to forget.
> 
> BTW... Daylight saving time doesn't actually save any daylight....  
> another pet peeve.

Quite right. Will Rogers said it was like cutting off one end of a  
blanket and sewing it on the other end to make it longer.

My father occasionally nags Congress to do away with it. (I always  
admire those who tilt at windmills.) He is actually old enough to  
remember when there was no such thing.

Hal

---

<div class="post-metadata">

**Author:** ![Kev\_Jackson](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@Kev\_Jackson](https://rubytalk.org/u/Kev_Jackson)\
**Post date:** [25 October 2006 01:46 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/13 "2006-10-25T01:46:34Z")

</div>

Not sure about the US, but in the UK, the original reason for a BST  
(British Summer Time) change was so that farm workers had more  
daylight hours - don't know why the US calls it Daylight Savings Time  
though.

These days as we have so few farmers/farm workers left in the UK, that  
reason is no longer applicable, so now we have the following reasons  
trotted out every time someone mentions abolishing it:

1 - tradition - the 'we've always done it' argument  
2 - children walking home from school should be in daylight - hard to  
argue with that - except 90% of schoolkids are driven to/from school  
in air-conditioned SUV's and couldn't care less about whether it's  
light or dark  
3 - saves electricity - this one is actually true - I've seen the data  
of the electricity consumption just before BST and after the change  
and the difference changing the clocks makes is remarkable (basically  
as you have more daylight, you use the lights less - although it  
doesn't make sense really as you will use them later, the usage of  
electricity is actually lower - suprised me)

Anyway, the electricity savings are real (at least the numbers I've  
seen), and given the political ramifications of reducing energy  
consumption (right now), don't expect any politician to advocate  
something that could potentially use more power...

Kev

---

<div class="post-metadata">

**Author:** ![Joel\_VanderWerf1](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@Joel\_VanderWerf1](https://rubytalk.org/u/Joel_VanderWerf1)\
**Post date:** [25 October 2006 02:02 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/14 "2006-10-25T02:02:07Z")

</div>

Hal Fulton wrote:

> \_Kevin wrote:

...

> > BTW... Daylight saving time doesn't actually save any daylight....  
> > another pet peeve.
> 
> Quite right. Will Rogers said it was like cutting off one end of a  
> blanket and sewing it on the other end to make it longer.

Will Rogers didn't know about fractals.

> My father occasionally nags Congress to do away with it. (I always  
> admire those who tilt at windmills.) He is actually old enough to  
> remember when there was no such thing.

No Congress? How old is he?

SCNR.

> **···**
>
> --  
> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;vjoel : Joel VanderWerf : path berkeley edu : 510 665 3407

---

<div class="post-metadata">

**Author:** ![M\_Edward\_Ed\_Borasky1](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@M\_Edward\_Ed\_Borasky1](https://rubytalk.org/u/M_Edward_Ed_Borasky1)\
**Post date:** [25 October 2006 01:51 UTC](https://rubytalk.org/t/how-can-my-boss-take-rails-seriously-with-bugs-like-this/32246/15 "2006-10-25T01:51:13Z")

</div>

Kevin Jackson wrote:

> Not sure about the US, but in the UK, the original reason for a BST  
> (British Summer Time) change was so that farm workers had more  
> daylight hours - don't know why the US calls it Daylight Savings Time  
> though.
> 
> These days as we have so few farmers/farm workers left in the UK, that  
> reason is no longer applicable, so now we have the following reasons  
> trotted out every time someone mentions abolishing it:
> 
> 1 - tradition - the 'we've always done it' argument  
> 2 - children walking home from school should be in daylight - hard to  
> argue with that - except 90% of schoolkids are driven to/from school  
> in air-conditioned SUV's and couldn't care less about whether it's  
> light or dark  
> 3 - saves electricity - this one is actually true - I've seen the data  
> of the electricity consumption just before BST and after the change  
> and the difference changing the clocks makes is remarkable (basically  
> as you have more daylight, you use the lights less - although it  
> doesn't make sense really as you will use them later, the usage of  
> electricity is actually lower - suprised me)
> 
> Anyway, the electricity savings are real (at least the numbers I've  
> seen), and given the political ramifications of reducing energy  
> consumption (right now), don't expect any politician to advocate  
> something that could potentially use more power...
> 
> Kev

Actually, IIRC it originated (here in the US, at any rate) during WWII  
as an energy saving measure. I think it was all year round, or maybe one  
hour in the winter and two hours in the summer.
