View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0003735 | unreal | ircd | public | 2008-10-12 17:17 | 2008-10-28 23:21 |
| Reporter | OrAcLe | Assigned To | |||
| Priority | normal | Severity | tweak | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Product Version | 3.2.7 | ||||
| Summary | 0003735: G:line showed time is different from machine time | ||||
| Description | When i set a g:line, it is set in UTC time that is different from machine real time: [-18:43:42-] -XXX- *** G:Line added for *@testing on Sun Oct 12 16:43:48 2008 GMT But /time commands says: Sunday October 12 2008 -- 18:44 +02:00 date command on shell says: 18:44 while date -u command on shell says: 16:44 /tsctl time: *** TStime=1223831208 time()=1223831208 TSoffset=0 | ||||
| Steps To Reproduce | /gline host then see at: /time | ||||
| Additional Information | We have already discussed on #unreal-support with satmd | ||||
| 3rd party modules | |||||
|
|
This doesn't need to be a private issue. This is intententional behavior. G:Lines are stored using GMT because that's the format epoch time goes by, and having all IRC timestamps in epoch is pretty much standard. Each time you request the time from the server, it is really epoch-offset=yourtime. For example, you are in the -2 timezone so it would be: Sun, 12 Oct 2008 17:06:48 GMT is 1223831208 You would subtract 2 hours from that: - 7200 = 1223824008 Which makes it: Sun, 12 Oct 2008 15:06:48 GMT-2 EDIT: If we did the subtraction to store everything in local time, 2 things would happen: 1: Unreal will run slower, because it would need to do this calculation on every single timestamp, and everything in IRC has a timestamp associated with it. 2: Servers in other timezones will have the wrong time! |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2008-10-12 17:17 | OrAcLe | New Issue | |
| 2008-10-28 23:16 | Stealth | QA | => Not touched yet by developer |
| 2008-10-28 23:16 | Stealth | U4: Need for upstream patch | => No need for upstream InspIRCd patch |
| 2008-10-28 23:16 | Stealth | U4: Upstream notification of bug | => Not decided |
| 2008-10-28 23:16 | Stealth | U4: Contributor working on this | => None |
| 2008-10-28 23:16 | Stealth | Note Added: 0015419 | |
| 2008-10-28 23:16 | Stealth | View Status | private => public |
| 2008-10-28 23:18 | Stealth | Note Edited: 0015419 | |
| 2008-10-28 23:21 | Stealth | Status | new => closed |
| 2008-10-28 23:21 | Stealth | Resolution | open => fixed |
| 2008-10-28 23:21 | Stealth | Resolution | fixed => no change required |