Cantin (Cantin Xu)
- Login: Cantin
- Email: cantin2010@gmail.com
- Registered on: 03/19/2014
- Last sign in: 01/31/2019
Issues
| open | closed | Total | |
|---|---|---|---|
| Assigned issues | 0 | 0 | 0 |
| Reported issues | 0 | 2 | 2 |
Activity
07/04/2017
-
02:50 AM Ruby Bug #13710 (Closed): Time zone info lost after doing +/- on time object that loaded from dumped string.
- See script below.
Time#zone return nil after doing +/- on instance b (which is loaded from dumped string)
~~~
a = Marshal.dump(Time.now)
b = Marshal.load(a)
p b.zone # CST
p (b + 1).zone # nil
p (b - 1).zone # nil
p (Time.no...
03/19/2014
-
06:54 AM Ruby Bug #9652 (Closed): Marshal doesn't dump/load Time#zone correctly with too many time object
- Hi, there
I wrote a script to test Marshal dump/load with many time object ( see attachment ).
basic idea is:
1) A is container of time, it contains 100,000 time instance (all Time.now).
2) dump/load A by using Marshal, expected...