mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/date/lib/date/format.rb (DateTime#strftime): removed because
date_core defines it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
700b778cbb
commit
4d09e8cd19
2 changed files with 6 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Mar 26 05:27:34 2011 NARUSE, Yui <naruse@ruby-lang.org>
|
||||||
|
|
||||||
|
* ext/date/lib/date/format.rb (DateTime#strftime): removed because
|
||||||
|
date_core defines it.
|
||||||
|
|
||||||
Fri Mar 25 21:59:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
Fri Mar 25 21:59:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
|
||||||
|
|
||||||
* ext/date/date_core.c: should not force cast with macros.
|
* ext/date/date_core.c: should not force cast with macros.
|
||||||
|
@ -20,7 +25,7 @@ Fri Mar 25 19:39:40 2011 Ben Walton <bwalton@artsci.utoronto.ca>
|
||||||
|
|
||||||
Use LOG_PID instead of LOG_PERROR in Syslog.open test
|
Use LOG_PID instead of LOG_PERROR in Syslog.open test
|
||||||
|
|
||||||
LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
|
LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
|
||||||
that don't define it. Solaris 9 and 10 are examples of this.
|
that don't define it. Solaris 9 and 10 are examples of this.
|
||||||
|
|
||||||
Use LOG_PID instead.
|
Use LOG_PID instead.
|
||||||
|
|
|
@ -1073,10 +1073,6 @@ end
|
||||||
|
|
||||||
class DateTime < Date
|
class DateTime < Date
|
||||||
|
|
||||||
def strftime(fmt='%FT%T%:z')
|
|
||||||
super(fmt)
|
|
||||||
end
|
|
||||||
|
|
||||||
def self._strptime(str, fmt='%FT%T%z')
|
def self._strptime(str, fmt='%FT%T%z')
|
||||||
super(str, fmt)
|
super(str, fmt)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue