mirror of
https://github.com/Qortal/altcoinj.git
synced 2025-02-14 11:15:51 +00:00
Specify time zone in block chain unit test. Resolves issue 291.
This commit is contained in:
parent
19b032e2e4
commit
d919ede7a8
@ -369,6 +369,6 @@ public class BlockChainTest {
|
||||
BlockChain prod = new BlockChain(params, new MemoryBlockStore(params));
|
||||
Date d = prod.estimateBlockTime(200000);
|
||||
// The actual date of block 200,000 was 2012-09-22 10:47:00
|
||||
assertEquals(new SimpleDateFormat("yyyy/MM/dd HH:mm:ss").parse("2012/10/23 17:35:05"), d);
|
||||
assertEquals(new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ").parse("2012-10-23T08:35:05.000-0700"), d);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user