novitski / bitcoinj

Automatically exported from code.google.com/p/bitcoinj
Apache License 2.0
0 stars 0 forks source link

TCPNetworkConnection logs localized date #495

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Example:
23:36:12.621 [New I/O worker #2] TCPNetworkConnection - Connected to 
144.76.165.115: version=70001, subVer='/Satoshi:0.8.5/', services=0x1, time=Sat 
Dec 07 23:36:29 格林尼治标准时间+0800 2013, blocks=151294

I suggest not using the default new Date(time).toString() method for logging. 
Instead, I suggest using the following construct for printing ISO9660 datetimes:

String.format("%tF %tT", time, time)

Original issue reported on code.google.com by andreas....@gmail.com on 7 Dec 2013 at 5:25

GoogleCodeExporter commented 9 years ago
Whoops, ISO8601 I meant.

Original comment by andreas....@gmail.com on 7 Dec 2013 at 5:32

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 22a58755dbb1.

Original comment by hearn@google.com on 12 Dec 2013 at 3:14