Skip to content

Commit

Permalink
complements Chronology-Core-dtl.85 (TimeZone offsets interface now in…
Browse files Browse the repository at this point in the history
…tegrated in trunk)
  • Loading branch information
LinqLover committed Aug 27, 2023
1 parent 42118db commit 395904c
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ explainTimezone
ifEmpty: [{TextColor red}])
from: our size - 5 to: our size].
Project uiManager
inform: ('<b>In their timezone ({1})</b>: {2}<br><b>In our timezone ({3}):</b> {4}' asTextFromHtml format:
{((TimeZone talkAllForOffset: self date offset) collect: #abbreviation) joinSeparatedBy: '/'.
inform: ('<b>In their timezone{1}</b>: {2}<br><b>In our timezone ({3}):</b> {4}' asTextFromHtml format:
{((TimeZone allForOffset: self date offset) collect: #abbreviation)
ifNotEmpty: [:abbrevs | ' ({1})' format: {abbrevs joinSeparatedBy: '/'}]
ifEmpty: [''].
their.
TimeZone local abbreviation.
our})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"conversation" : "ct 5/20/2021 18:54",
"dataKey" : "ct 5/7/2021 17:36",
"date" : "ct 5/7/2021 15:08",
"explainTimezone" : "ct 6/4/2023 01:04",
"explainTimezone" : "ct 8/17/2023 09:34",
"fullTextForSummary" : "ct 6/22/2023 22:08",
"hyperkittyUrl" : "ct 5/18/2023 19:04",
"hyperkittyUrlForThread" : "ct 6/1/2023 18:24",
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ testExplainTimezone

self
patch: message at: #date withValue: (DateAndTime fromString: '2023-06-04T00:53:27-07:00');
patch: TimeZone at: #local with: [TimeZone timeZones detect: [:tz | tz abbreviation = 'EST']];
patch: TimeZone at: #local with: [TimeZone allTimeZones detect: [:tz | tz abbreviation = 'EST']];
patch: DateAndTime at: #localOffset withValue: -5 hours.

text := [message explainTimezone]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
"instance" : {
"classUnderTest" : "ct 5/20/2021 18:59",
"testAuthorTimestamp" : "ct 6/22/2023 23:25",
"testExplainTimezone" : "ct 6/4/2023 01:06",
"testExplainTimezone" : "ct 8/27/2023 21:01",
"testPrintString" : "ct 5/20/2021 16:14",
"testSubject" : "ct 7/1/2023 18:15" } }
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit 395904c

Please sign in to comment.